-
Notifications
You must be signed in to change notification settings - Fork 801
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
Git Push example needs correction #16
Comments
@girliemac What do you think about this? |
@girliemac Hi. Since the explanations are popular I think it's important that they are also correct. Could you please respond to this issue? 😊 |
@GollyTicker Thank you so much and apologies for not seeing your comments sooner. I need to somehow edit this physical drawing on paper without making it messy! Thank you for pointing this out 😺 |
Theoretically you could edit the image via Photoshop and co. Otherwise I'd would make most sense to redraw these pictures. |
Thanks for creating the nice pictures. I have looked at them and they're helpful - except for one case, where I'm sure that the information is incorrect.
Considering this explanation for git push
I see, that the left example does not fit with my experience and understanding of Git - and reproducing the setup with a small repository I get push rejected for the final
git push -u origin tabby
instead of a successful push.This makes sense, because the
tabby
branch has different histories locally vs. remote. Locally,tabby
hascat -> cat with bow tie -> cat with bow tie and stripes
. Remotely, before the push,origin/tabby
iscat -> cat with stripes
. The lastcat with stripes
commit never existed locally, hence the push will not work. Merges are only possible locally and not on remote.Do be correct, the lower drawing needs to:
was origin/tabby
text point tocat with bow tie
cat with bow tie
to the newcat with bow tie and stripes
cat with stripes
entirely and all of it's linesWhat do you think?
The text was updated successfully, but these errors were encountered: