Merge pull request #19 from sconklin/master

add instructions for changing the author of the last commit
This commit is contained in:
Kate Hudson 2014-08-22 14:54:38 -04:00
commit 0b5b0762e3
1 changed files with 11 additions and 0 deletions

View File

@ -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