Rewriting history

This commit is contained in:
fechin committed 2023-01-05 14:01:38 +08:00
1 parent dbdeb7a7be
commit 7cd223bb4d
1 file changed
+3 -2
+3 -2
View File
@@ -355,11 +355,12 @@ $ git checkout <branch> -- <file>
### 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