Reset author

This commit is contained in:
Hemanth.HM 2016-01-17 22:13:52 +05:30
parent 321da85d47
commit 2ce80d7d5d
2 changed files with 10 additions and 0 deletions

View File

@ -25,6 +25,7 @@
* [Reset: Discard commits, advised for private branch](https://github.com/git-tips/tips#reset-discard-commits-advised-for-private-branch)
* [Reword the previous commit message](https://github.com/git-tips/tips#reword-the-previous-commit-message)
* [Amend author.](https://github.com/git-tips/tips#amend-author)
* [Reset author, after author has been changed in the global config.](https://github.com/git-tips/tips#reset-author-after-author-has-been-changed-in-the-global-config)
* [Changing a remote's URL](https://github.com/git-tips/tips#changing-a-remotes-url)
* [Get list of all remote references](https://github.com/git-tips/tips#get-list-of-all-remote-references)
* [Get list of all local and remote branches](https://github.com/git-tips/tips#get-list-of-all-local-and-remote-branches)
@ -198,6 +199,11 @@ git commit -v --amend
git commit --amend --author='Author Name <email@address.com>'
```
## Reset author, after author has been changed in the global config.
```sh
git commit --amend --reset-author --no-edit
```
## Changing a remote's URL
```sh
git remote set-url origin <URL>

View File

@ -88,6 +88,10 @@
"title": "Amend author.",
"tip": "git commit --amend --author='Author Name <email@address.com>'"
},
{
"title": "Reset author, after author has been changed in the global config.",
"tip": "git commit --amend --reset-author --no-edit"
},
{
"title": "Changing a remote's URL",
"tip": "git remote set-url origin <URL>"