mirror of
https://github.com/k88hudson/git-flight-rules.git
synced 2025-03-10 12:48:43 -03:00
add instructions for changing the author of the last commit
This commit is contained in:
parent
9536d6987d
commit
1b8e378cf4
11
README.md
11
README.md
@ -188,6 +188,17 @@ Since rebasing **replaces the old commit(s) with a new one**, you must force pus
|
|||||||
(mybranch) $ git push origin mybranch -f
|
(mybranch) $ git push origin mybranch -f
|
||||||
```
|
```
|
||||||
|
|
||||||
|
<a name="commit-wrong-author"></a>
|
||||||
|
## I committed with the wrong name and email configured
|
||||||
|
|
||||||
|
If it's a single commit, amend it
|
||||||
|
|
||||||
|
```
|
||||||
|
$ git commit --amend --author "New Authorname <authoremail@mydomain.com>"
|
||||||
|
```
|
||||||
|
|
||||||
|
If you need to change all of history, see the man page for 'git filter-branch'
|
||||||
|
|
||||||
<a name="commit-wrong-branch"></a>
|
<a name="commit-wrong-branch"></a>
|
||||||
## I committed to master instead of a new branch
|
## I committed to master instead of a new branch
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user