首页 > 其他 > 详细

git各种命令 & git merge和git rebase的区别

时间:2017-04-18 12:35:04      阅读:234      评论:0      收藏:0      [点我收藏+]

技术分享

 

 git merge 和 rebase的区别:

http://blog.csdn.net/jollyjumper/article/details/24743751

 

对于两个分支而言,rebase和merge没有区别,但是rebase更干净,因为log hisitory是线性的,但commit不一定按日期先后排,而是local commit总在后面,merge之后history变得比较复杂,但是commit按日期排序,stackoverflow上有个图示很好:

http://stackoverflow.com/questions/16666089/whats-the-difference-between-git-merge-and-git-rebase

这篇博客则说适用场景,认为产品OEM保留分支时适用rebase,功能分支合并到主分支用merge。

http://blog.csdn.net/rryqsh/article/details/8230560

 

git各种命令 & git merge和git rebase的区别

原文:http://www.cnblogs.com/charlesblc/p/6727093.html

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