1
0
mirror of https://github.com/namibia/tips.git synced 2024-06-25 22:52:34 +00:00

ammed author

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

View File

@ -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)
* [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)
* [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)
@ -192,6 +193,11 @@ git reset <commit-ish>
git commit -v --amend
```
## Amend author.
```sh
git commit --amend --author='Author Name <email@address.com>'
```
## Changing a remote's URL
```sh
git remote set-url origin <URL>

View File

@ -84,6 +84,10 @@
"title": "Reword the previous commit message",
"tip": "git commit -v --amend"
},
{
"title": "Amend author.",
"tip": "git commit --amend --author='Author Name <email@address.com>'"
},
{
"title": "Changing a remote's URL",
"tip": "git remote set-url origin <URL>"