From 3ed8741c28c56e509d7bf6873cd99589fcc2035f Mon Sep 17 00:00:00 2001 From: "Hemanth.HM" Date: Mon, 27 Jul 2015 09:33:30 +0530 Subject: [PATCH] Git alias --- README.md | 7 +++++++ tips.json | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/README.md b/README.md index a231599..2531761 100644 --- a/README.md +++ b/README.md @@ -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) @@ -154,5 +155,11 @@ __Alternatives:__ git branch --contains ``` +## Git Aliases +```sh +git config --global alias. +git config --global alias.st status +``` + diff --git a/tips.json b/tips.json index d6e6904..1c87026 100644 --- a/tips.json +++ b/tips.json @@ -88,5 +88,9 @@ "title": "Find out branches containing commit-hash", "tip": "git branch -a --contains ", "alternatives": ["git branch --contains "] + }, + { + "title": "Git Aliases", + "tip": "git config --global alias. \ngit config --global alias.st status" } ]