Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

how to pull? #545

Closed
Closed
@Gluoo

Description

@Gluoo

I want to pull the latest files from git repo, but I don't know how to do this, can anybody tell me? thanks.

I can clone a repo:
rep, cloneErr := git.PlainClone(LOCAL_CLONE_PATH, false, &git.CloneOptions{
URL: GIT_REP_URL,
Progress: os.Stdout,
})

but did not find any API of pull request, just find a fetch API, but not work well

repo, openErr := git.PlainOpen(LOCAL_CLONE_PATH)
pullError := repo.Fetch(&git.FetchOptions{
RemoteName: "origin",
Progress: os.Stdout,
})

after run the fetch API, nothing changed in my local repo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions