mirror of
https://github.com/k88hudson/git-flight-rules.git
synced 2025-03-10 12:48:43 -03:00
Merge pull request #19 from sconklin/master
add instructions for changing the author of the last commit
This commit is contained in:
commit
0b5b0762e3
11
README.md
11
README.md
@ -202,6 +202,17 @@ Since rebasing **replaces the old commit(s) with a new one**, you must force pus
|
||||
(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>
|
||||
## I committed to master instead of a new branch
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user