mirror of
https://github.com/git-tips/tips.git
synced 2024-09-22 00:01:00 +02:00
Reset author
This commit is contained in:
parent
321da85d47
commit
2ce80d7d5d
|
@ -25,6 +25,7 @@
|
||||||
* [Reset: Discard commits, advised for private branch](https://github.com/git-tips/tips#reset-discard-commits-advised-for-private-branch)
|
* [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)
|
* [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)
|
* [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)
|
* [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 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)
|
* [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>'
|
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
|
## Changing a remote's URL
|
||||||
```sh
|
```sh
|
||||||
git remote set-url origin <URL>
|
git remote set-url origin <URL>
|
||||||
|
|
|
@ -88,6 +88,10 @@
|
||||||
"title": "Amend author.",
|
"title": "Amend author.",
|
||||||
"tip": "git commit --amend --author='Author Name <email@address.com>'"
|
"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",
|
"title": "Changing a remote's URL",
|
||||||
"tip": "git remote set-url origin <URL>"
|
"tip": "git remote set-url origin <URL>"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user