版本比较

标识

  • 该行被添加。
  • 该行被删除。
  • 格式已经改变。

...

使用rebase合并分支上的某个commit到master分支,比如下面的操作:

信息
iconfalse
A --- B --- C          master
 \
  \-- D                topic

to

信息
iconfalse
A --- B --- C          master
       \
        \-- D          topic

instead of

信息
iconfalse
A --- B --- C          master
             \
              \-- D    topic

操作方法:

代码块
git branch temp master^
git checkout topic
git rebase temp
git branch -d temp

...