mirror of
https://github.com/k88hudson/git-flight-rules.git
synced 2025-03-11 13:18:50 -03:00
Merge pull request #86 from appleboy/patch-1
Add another way to change the commit message.
This commit is contained in:
commit
3c736dfa26
@ -74,6 +74,13 @@ If you wrote the wrong thing and the commit has not yet been pushed, you can do
|
|||||||
$ git commit --amend
|
$ git commit --amend
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Another way to change the commit message:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
$ git reset --soft HEAD^
|
||||||
|
$ git commit -a -m 'xxxxxxx'
|
||||||
|
```
|
||||||
|
|
||||||
If you have already pushed the message, you can amend the commit and force push, but this is not recommended.
|
If you have already pushed the message, you can amend the commit and force push, but this is not recommended.
|
||||||
|
|
||||||
## I need to add staged changes to the previous commit
|
## I need to add staged changes to the previous commit
|
||||||
|
Loading…
x
Reference in New Issue
Block a user