mirror of
https://github.com/k88hudson/git-flight-rules.git
synced 2025-03-10 12:48:43 -03:00
Merge pull request #77 from RichardLitt/feature/edit-amend
Added more text to amend section to explain when it is good to edit a…
This commit is contained in:
commit
d417eedd3b
@ -68,10 +68,14 @@ For clarity's sake all examples in this document use a customized bash prompt in
|
||||
<a name="amend"></a>
|
||||
## I wrote the wrong thing in a commit message
|
||||
|
||||
If you wrote the wrong thing and the commit has not yet been pushed, you can do the following to change the commit message:
|
||||
|
||||
```sh
|
||||
$ git commit --amend
|
||||
```
|
||||
|
||||
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
|
||||
|
||||
```sh
|
||||
|
Loading…
x
Reference in New Issue
Block a user