Why does Git still show the old commit message even after a revert? -


why git history show wrong commit message? reverted commit , committed different commit message, why does'st file history still show old commit message. both revert , commit part of same pull request.

git keeps history of changes if committed , reverted change in same pull request separate commit, revert separate commit , kept in history.

having said that, there still way change history. can instance amend last commit with:

git commit --amend

or can squash last 2 commits one: git rebase -i head~2 , follow instructions in interactive mode.


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -