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

Add a git fetch exercise? #420

Open
jangari opened this Issue Jun 27, 2017 · 1 comment

Comments

Projects
None yet
3 participants
@jangari

jangari commented Jun 27, 2017

Every time I teach this, participants ask how they can check to see whether origin has been updated before they try to git push so as to know in advance whether they're going to have to merge anything, or more generally just to compare their latest committed version with origin.

Is it worth adding a small exercise showing git fetch, and then how to compare master with origin/master?

@naught101

This comment has been minimized.

Contributor

naught101 commented Oct 25, 2017

I agree. I also think it would be worth clarifying that git pull is equivalent to git fetch && git merge origin/<upstream-branch>. That would demystify git pull a bit, as well as clarifying the separation between merging branches and interacting with an upstream repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment