Skip to content

Instantly share code, notes, and snippets.

@nara-l
Created August 17, 2018 01:27
Show Gist options
  • Save nara-l/4f89fb08eec5a8b022abcd8c0f8f166d to your computer and use it in GitHub Desktop.
Save nara-l/4f89fb08eec5a8b022abcd8c0f8f166d to your computer and use it in GitHub Desktop.
Change recently git committed message after pushing to github
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