Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to do a pull or fetch? #37

Open
angerman opened this issue Sep 3, 2014 · 1 comment
Open

How to do a pull or fetch? #37

angerman opened this issue Sep 3, 2014 · 1 comment
Labels

Comments

@angerman
Copy link

angerman commented Sep 3, 2014

I was unable to determine how to perform a pull or fetch operation using gitlib.

Say I want to ensure the repository is up to date, prior to doing anything with it. I know I have a clean local state, but for history walking and alike I'd like to ensure the repository knows at least all the
remote information of the "origin" remote.

How would one achieve such an update of the local repository with gitlib?

@jwiegley
Copy link
Owner

jwiegley commented Sep 3, 2014

At the moment gitlib is focused on intra-repository operations, but not inter-repository, so it really knows nothing about pulling in general. However, in the gitlib-cmdline backend, you'll find some functions for both pushing and pulling, and determining if there are any new commits in a remote repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants