git clone 和 checkout 有什么区别? [英] What is the difference between git clone and checkout?
本文介绍了git clone 和 checkout 有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
git clone
和git checkout
有什么区别?
推荐答案
结帐手册页:http://git-scm.com/docs/git-checkout
克隆的手册页:http://git-scm.com/docs/git-克隆
总而言之,clone 是用来获取你没有的仓库,checkout 是用来在你已有的仓库中切换分支.
To sum it up, clone is for fetching repositories you don't have, checkout is for switching between branches in a repository you already have.
注意:对于那些有 SVN/CVS 背景和 Git 新手来说,SVN/CVS 中的 git clone
相当于 checkout
.不同术语的相同措辞常常令人困惑.
Note: for those who have a SVN/CVS background and new to Git, the equivalent of git clone
in SVN/CVS is checkout
. The same wording of different terms is often confusing.
这篇关于git clone 和 checkout 有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文