首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件开发 >

Git 批改提交信息

2013-02-18 
Git 修改提交信息方法一 git commit --amend 可以修改最后一次 commit方法二 交互式修改查看修改1git reba

Git 修改提交信息

方法一

 git commit --amend 可以修改最后一次 commit


方法二 交互式修改查看修改

1

git rebase -i master~1 //最

git rebase -i master~5 //最后五次

2. // 显示结果如下,修改 pick 为 edit ,并 :wq 保存退出

pick 91b495b 2012-01-08: "提交信息内容"

# Rebase 9ef2b1f..91b495b onto 9ef2b1f
#
# Commands:
#  pick = use commit
#  edit = use commit, but stop for amending //改上面的 pick 为 edit
#  squash = use commit, but meld into previous commit
#
# If you remove a line here THAT COMMIT WILL BE LOST.
# However, if you remove everything, the rebase will be aborted.
#
3. 使用 git rebase --continue 完成操作

热点排行