Origin is a reference to the remote upstream repository.
The current local branch currently being worked on is HEAD
And master is the “current development branch”
So if I git checkout -b experimental-branch, I will leave the current branch (master) and am now working on my newly created branch (experimental-branch*)
After making many local changes and commits, when I think my experiment is ready, I can push it to the remote repository (origin). When I’m ready, I’m goa git fetch origin to make sure I have the latest changes, and then push to origin.
Amiright?
I’m having difficulty distinguishing between HEAD and master. What’s the difference?
Thanks for your attention.
- - , .
برچسب:
نویسنده: استخدام کار