From 6cfcc26d9f99ff87df62c3384a0e8762f7aed9a9 Mon Sep 17 00:00:00 2001 From: "Hemanth.HM" Date: Fri, 17 Jul 2015 06:51:14 +0530 Subject: [PATCH] Get git bash completion. --- README.md | 6 ++++++ tips.json | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/README.md b/README.md index af0fe14..25b245a 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ * [Undo local changes with the last content in head](https://github.com/git-tips/tips#undo-local-changes-with-the-last-content-in-head) * [Changing a remote's URL](https://github.com/git-tips/tips#changing-a-remotes-url) * [Stage parts of a changed file, instead of the entire file](https://github.com/git-tips/tips#stage-parts-of-a-changed-file-instead-of-the-entire-file) +* [Get git bash completion](https://github.com/git-tips/tips#get-git-bash-completion) @@ -94,5 +95,10 @@ git remote set-url origin git add -p ``` +## Get git bash completion +```sh +curl http://git.io/vfhol > ~/.git-completion.bash && echo '[ -f ~/.git-completion.bash ] && . ~/.git-completion.bash' >> ~/.bashrc +``` + diff --git a/tips.json b/tips.json index ebeaba9..f5ec05d 100644 --- a/tips.json +++ b/tips.json @@ -54,5 +54,9 @@ { "title": "Stage parts of a changed file, instead of the entire file", "tip": "git add -p" + }, + { + "title": "Get git bash completion", + "tip": "curl http://git.io/vfhol > ~/.git-completion.bash && echo '[ -f ~/.git-completion.bash ] && . ~/.git-completion.bash' >> ~/.bashrc" } ]