歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> git 合並多個提交

git 合並多個提交

日期:2017/2/28 14:56:03   编辑:Linux教程

在git 中如要合並多個提交可以使用git rebase 命令:

$ git log :

commit 711a4bc9eb070b773109bb8afecb23e60ff66092

Author: zhangyx <xxxx>

Date: Thu Nov 22 18:43:35 2012 +0800

mxc622x debug second

commit 0f037135dc028f1ac15138539c5e18011d1a9fdc

Author: zhangyx <xxxx>

Date: Thu Nov 22 17:52:51 2012 +0800

mxc622x debug first

$ git rebase -i HEAD~2 表示合並最近的2個提交 再按提示操作即可。

Copyright © Linux教程網 All Rights Reserved