码迷,mamicode.com
首页 > 其他好文 > 详细

git中常混淆的操作

时间:2018-07-10 23:30:46      阅读:152      评论:0      收藏:0      [点我收藏+]

标签:http   etc   enc   and   影响   .net   merge   链接   pull   

1, git fetch 和 git pull

参考链接: https://stackoverflow.com/questions/292357/what-is-the-difference-between-git-pull-and-git-fetch

git pull = git fetch + git merge;

git fetch 从远程分支取下最新的代码,但不会影响本地分支代码

git pull  从远程分支拉下最新代码,并和自己的本地分支做融合操作。更新了本地分支。

 

2, git rebase 和 git merge

https://blog.csdn.net/wh_19910525/article/details/7554489

git中常混淆的操作

标签:http   etc   enc   and   影响   .net   merge   链接   pull   

原文地址:https://www.cnblogs.com/hiluna/p/9291844.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!