diff --git a/source/_posts/git.md b/source/_posts/git.md index ddd90f9..147fd04 100644 --- a/source/_posts/git.md +++ b/source/_posts/git.md @@ -355,11 +355,12 @@ $ git checkout -- -### Commit +### Rewriting history Rewrite last commit message ```shell script -$ git commit -v --amend +$ git commit --amend -m "new message" ``` +See also: [Rewriting history](https://www.atlassian.com/git/tutorials/rewriting-history) ### Git Aliases