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
Post a Comment