pcottle / learnGitBranching

An interactive git visualization and tutorial. Aspiring students of git can use this app to educate and challenge themselves towards mastery of git!
https://pcottle.github.io/learnGitBranching/
MIT License
30.34k stars 5.73k forks source link

some clarifications on the diagrams in "git pull" lesson #1080

Closed Hifilo closed 1 year ago

Hifilo commented 1 year ago

Hello, just needed some clarification on the remote diagrams.

The dashed diagram represents the remote repo that I cloned and the solid diagram is my version of that cloned repo that I am working on.

Hifilo commented 1 year ago

chrome_QILmT1ccj8

And just a follow up question for my own understanding, when I run git pull shouldn't o/main end on C4 with main?

pcottle commented 1 year ago

Yep, the dashed diagram on the right represents the state of the git repository on the origin server. Think about it like the state that lives inside the GitHub servers.

Git pull would not produce that result, since pulling is taking data from GitHub to your local machine. Push is the way to get the commit #4 onto the server. I'll let the level do more explaining :)

Hifilo commented 1 year ago

awesome thank you