Created
August 17, 2018 01:27
-
-
Save nara-l/4f89fb08eec5a8b022abcd8c0f8f166d to your computer and use it in GitHub Desktop.
Change recently git committed message after pushing to github
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git commit --amend -m "New commit message" | |
| # then | |
| git push --force | |
| # it creates a new message and creates a merge of the branch with itself it appears | |
| # this works assuming no one else did any push |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment