mirror of
https://github.com/namibia/tips.git
synced 2024-11-16 10:05:17 +00:00
ammed author
This commit is contained in:
parent
3c31eac721
commit
321da85d47
@ -24,6 +24,7 @@
|
|||||||
* [Revert: Undo a commit by creating a new commit](https://github.com/git-tips/tips#revert-undo-a-commit-by-creating-a-new-commit)
|
* [Revert: Undo a commit by creating a new commit](https://github.com/git-tips/tips#revert-undo-a-commit-by-creating-a-new-commit)
|
||||||
* [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)
|
||||||
* [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)
|
||||||
@ -192,6 +193,11 @@ git reset <commit-ish>
|
|||||||
git commit -v --amend
|
git commit -v --amend
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Amend author.
|
||||||
|
```sh
|
||||||
|
git commit --amend --author='Author Name <email@address.com>'
|
||||||
|
```
|
||||||
|
|
||||||
## Changing a remote's URL
|
## Changing a remote's URL
|
||||||
```sh
|
```sh
|
||||||
git remote set-url origin <URL>
|
git remote set-url origin <URL>
|
||||||
|
@ -84,6 +84,10 @@
|
|||||||
"title": "Reword the previous commit message",
|
"title": "Reword the previous commit message",
|
||||||
"tip": "git commit -v --amend"
|
"tip": "git commit -v --amend"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"title": "Amend author.",
|
||||||
|
"tip": "git commit --amend --author='Author Name <email@address.com>'"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"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