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" } ]