首页 > 其他 > 详细

Git 中 pull 和 clone 的区别

时间:2019-03-12 13:11:06      阅读:152      评论:0      收藏:0      [点我收藏+]

 

git pull
git clone

 

clone 是本地没有 repository 时,将远程 repository 整个下载过来。

pull 是本地有 repository 时,将远程 repository 里新的 commit 数据(如有的话)下载过来,并且与本地代码merge。

 

note:git pull相当于git fetch和git merge。

其意思是先从远程下载git项目里的文件,然后将文件与本地的分支进行merge。

Git 中 pull 和 clone 的区别

原文:https://www.cnblogs.com/sea-stream/p/10515806.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!