Git alias

This commit is contained in:
Hemanth.HM 2015-07-27 09:33:30 +05:30
parent b0562c1366
commit 3ed8741c28
2 changed files with 11 additions and 0 deletions

View File

@ -25,6 +25,7 @@
* [What changed since two weeks?](https://github.com/git-tips/tips#what-changed-since-two-weeks)
* [Pick commits across branches using cherry-pick](https://github.com/git-tips/tips#pick-commits-across-branches-using-cherry-pick)
* [Find out branches containing commit-hash](https://github.com/git-tips/tips#find-out-branches-containing-commit-hash)
* [Git Aliases](https://github.com/git-tips/tips#git-aliases)
<!-- Dont remove or change the comment below that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
<!-- @doxie.inject end toc -->
@ -154,5 +155,11 @@ __Alternatives:__
git branch --contains <commit-ish>
```
## Git Aliases
```sh
git config --global alias.<handle> <command>
git config --global alias.st status
```
<!-- Dont remove or change the comment below that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
<!-- @doxie.inject end -->

View File

@ -88,5 +88,9 @@
"title": "Find out branches containing commit-hash",
"tip": "git branch -a --contains <commit-ish>",
"alternatives": ["git branch --contains <commit-ish>"]
},
{
"title": "Git Aliases",
"tip": "git config --global alias.<handle> <command> \ngit config --global alias.st status"
}
]