Created
October 21, 2021 07:53
-
-
Save za/7c25e180d964a7f1304b803b18b11375 to your computer and use it in GitHub Desktop.
update/change your commit message
This file contains 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
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