git 如何修改已經commit的log說明?

1 輸入命令:

git commit --amend

2修改你最近提交的message,輸入 :q    退出vim編輯器

3查看是否修改成功:git log

4修改成功後,提交遠程:

git push <remote> <branch> --force
# Or
git push <remote> <branch> -f
5查看遠程庫,修改成功







參考:Edit an incorrect commit message in Git

http://book.51cto.com/art/201205/337170.htm

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章