git-7_merge remote change

$git fetch        #get remote repo change,local branch head will not change
$git fetch –a     #get all HEAD/Tag/Branch change from remote repo
$git merge remotes/origin/build_llv #merge remote change to local
$git pull         # this command = git fetch+git merge
$git pull –rebase #merge remote modification, recommended. 
$git rebase -i  #rebase with interaction, you can squash the commits

Note: git pull will add another new commit to denote that the merge happened.
发布了38 篇原创文章 · 获赞 3 · 访问量 6671

猜你喜欢

转载自blog.csdn.net/zhanghuanhuanzhh/article/details/88660668