git remote add和git clone之间的区别 [英] Difference between git remote add and git clone
本文介绍了git remote add和git clone之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
clone
命令的作用是什么?在svn中有没有什么等价物?
git remote add test git://github.com/user/test.git
git clone git://github.com/user/test.git
所创建的回购协议的名称是否重要?
解决方案
git remote add
只是在您的git config中创建一个条目,指定特定URL的名称。你必须有一个现有的git仓库来使用它。
git clone
通过复制现有的一个位于您指定的URI处。What does the
clone
command do? Is there any equivalent to it in svn?What is the difference between
git remote add test git://github.com/user/test.git
And
git clone git://github.com/user/test.git
Does the name of the created repo matter?
解决方案
git remote add
just creates an entry in your git config that specifies a name for a particular URL. You must have an existing git repo to use this.
git clone
creates a new git repository by copying an existing one located at the URI you specify.这篇关于git remote add和git clone之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文