gitx

What are the differences between git branch, fork, fetch, merge, rebase and clone?

て烟熏妆下的殇ゞ 提交于 2019-11-25 23:47:43
问题 I want to understand the difference between a branch, a fork and a clone in Git? Similarly, what does it mean when I do a git fetch as opposed to a git pull ? Also, what does rebase mean in comparison to merge ? How can I squash individual commits themselves together? How are they used, why are they used and what do they represent? How does GitHub figure in? 回答1: A clone is simply a copy of a repository. On the surface, its result is equivalent to svn checkout , where you download source code