开发者

How to edit the commit message of a git merge [duplicate]

This question already has answers here: Git: How to edit/reword a merge commit's message? (8 answers) Closed 9 years ago.

I have merged with other branch, and there are few c开发者_C百科ommits after merge, before pushing i want to change the message of the merge. git rebase -i is not displaying the merge commit.


Not sure if there is a more elegant version, but what you can do is the following:

git checkout <sha of merge>
git commit --amend # edit message
git rebase HEAD previous_branch
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜