Skip to content

Commit 3ed8741

Browse files
committed
Git alias
1 parent b0562c1 commit 3ed8741

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
* [What changed since two weeks?](https://github.com/git-tips/tips#what-changed-since-two-weeks)
2626
* [Pick commits across branches using cherry-pick](https://github.com/git-tips/tips#pick-commits-across-branches-using-cherry-pick)
2727
* [Find out branches containing commit-hash](https://github.com/git-tips/tips#find-out-branches-containing-commit-hash)
28+
* [Git Aliases](https://github.com/git-tips/tips#git-aliases)
2829

2930
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
3031
<!-- @doxie.inject end toc -->
@@ -154,5 +155,11 @@ __Alternatives:__
154155
git branch --contains <commit-ish>
155156
```
156157

158+
## Git Aliases
159+
```sh
160+
git config --global alias.<handle> <command>
161+
git config --global alias.st status
162+
```
163+
157164
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
158165
<!-- @doxie.inject end -->

tips.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,5 +88,9 @@
8888
"title": "Find out branches containing commit-hash",
8989
"tip": "git branch -a --contains <commit-ish>",
9090
"alternatives": ["git branch --contains <commit-ish>"]
91+
},
92+
{
93+
"title": "Git Aliases",
94+
"tip": "git config --global alias.<handle> <command> \ngit config --global alias.st status"
9195
}
9296
]

0 commit comments

Comments
 (0)