git push后修改错误的commit message
2013-12-16 16:42
483 查看
Easiest solution (but please read this whole answer before doing this):
In the editor that opens, change
Save the file and close the editor.
The editor will open again with the incorrect commit message. Fix it.
Save the file and close the editor.
git rebase -i <hash-of-commit-preceding-the-incorrect-one>(这里可以用要改的那次的hash,如果是前一两次也可以用HEAD^或者HEAD^^)
In the editor that opens, change
pickto
rewordon the line for the incorrect commit.
Save the file and close the editor.
The editor will open again with the incorrect commit message. Fix it.
Save the file and close the editor.
git push --forceto update GitHub.
相关文章推荐
- git push后修改错误的commit message
- git修改已经push了的commit message
- git修改已经push过的commit message
- Git撤销git commit 但是未git push的修改
- Git撤销git commit 但是未git push的修改
- Git撤销git commit 但是未git push的修改
- git删除错误的commit和push
- git push ERROR: missing Change-Id in commit message footer
- Git撤销git commit 但是未git push的修改
- git合并分支或者push时,报错:“Please enter a commit message to explain why this merge is necessary,especi”的解决办法
- git push ERROR: missing Change-Id in commit message footer
- Git撤销git commit 但是未git push的修改
- git push ERROR: missing Change-Id in commit message footer
- Git往远程push前修改commit信息
- Git往远程push前修改commit信息
- Git撤销git commit 但是未git push的修改
- Git往远程push前修改commit信息
- git commit之后发现message写错,修改办法
- git合并分支或者push时,报错:“Please enter a commit message to explain why this merge is necessary,especi”的解决办法
- 如何解决无法成功git commit 和git push