Skip to content

Instantly share code, notes, and snippets.

@za
Created October 21, 2021 07:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save za/7c25e180d964a7f1304b803b18b11375 to your computer and use it in GitHub Desktop.
Save za/7c25e180d964a7f1304b803b18b11375 to your computer and use it in GitHub Desktop.
update/change your commit message
I was updating a URL in a PR. It was a simple one: replace `http` with `https`.
Then I saw they have a commit message guideline.
So I decided to update the commit message.
```
$ git commit --amend
$ git push -f
```
It will make a new commit and replace the previous commit message.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment