diff --git a/posts/git-cheatsheet.md b/posts/git-cheatsheet.md index aef465d..50fa7ac 100644 --- a/posts/git-cheatsheet.md +++ b/posts/git-cheatsheet.md @@ -100,4 +100,10 @@ git submodule update --init --remote $ git commit --amend --author="Author Name " --no-edit ``` -The author name and email can be found using `git log`. \ No newline at end of file +The author name and email can be found using `git log`. + +## [Reuse the previous commit message and also want to edit it](https://git-scm.com/docs/git-commit#Documentation/git-commit.txt--cltcommitgt) + +```bash +$ git commit -c HEAD +``` \ No newline at end of file