mirror of
https://github.com/namibia/tips.git
synced 2025-02-08 22:08:25 +00:00
Git alias
This commit is contained in:
parent
b0562c1366
commit
3ed8741c28
@ -25,6 +25,7 @@
|
|||||||
* [What changed since two weeks?](https://github.com/git-tips/tips#what-changed-since-two-weeks)
|
* [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)
|
* [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)
|
* [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)
|
||||||
|
|
||||||
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
||||||
<!-- @doxie.inject end toc -->
|
<!-- @doxie.inject end toc -->
|
||||||
@ -154,5 +155,11 @@ __Alternatives:__
|
|||||||
git branch --contains <commit-ish>
|
git branch --contains <commit-ish>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Git Aliases
|
||||||
|
```sh
|
||||||
|
git config --global alias.<handle> <command>
|
||||||
|
git config --global alias.st status
|
||||||
|
```
|
||||||
|
|
||||||
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
||||||
<!-- @doxie.inject end -->
|
<!-- @doxie.inject end -->
|
||||||
|
@ -88,5 +88,9 @@
|
|||||||
"title": "Find out branches containing commit-hash",
|
"title": "Find out branches containing commit-hash",
|
||||||
"tip": "git branch -a --contains <commit-ish>",
|
"tip": "git branch -a --contains <commit-ish>",
|
||||||
"alternatives": ["git branch --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"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user