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

git常用命令2--- git rebase

时间:2017-05-30 18:06:04      阅读:137      评论:0      收藏:0      [点我收藏+]

标签:upstream   常用命令   top   commit   简单   com   ast   ranch   str   

git rebase:简单而言就是把某个分支上的提交commit嫁接到另一个commit的后面,在这个过程中这些commit的base相对就改变了,也就叫变基。

git rebase <upstream> <branch>

如果提供了branch会首先checkout到这个branch上,然后再进行rebase操作;

git rebase master topic

git rebase master 

git rebase --onto <newbase> <upstream> <branch>

 

git常用命令2--- git rebase

标签:upstream   常用命令   top   commit   简单   com   ast   ranch   str   

原文地址:http://www.cnblogs.com/hujianglang/p/6920522.html

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