Skip to content

Commit 6cfcc26

Browse files
committed
Get git bash completion.
1 parent 0cd100f commit 6cfcc26

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
* [Undo local changes with the last content in head](https://github.com/git-tips/tips#undo-local-changes-with-the-last-content-in-head)
1818
* [Changing a remote's URL](https://github.com/git-tips/tips#changing-a-remotes-url)
1919
* [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)
20+
* [Get git bash completion](https://github.com/git-tips/tips#get-git-bash-completion)
2021

2122
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
2223
<!-- @doxie.inject end toc -->
@@ -94,5 +95,10 @@ git remote set-url origin <URL>
9495
git add -p
9596
```
9697

98+
## Get git bash completion
99+
```sh
100+
curl http://git.io/vfhol > ~/.git-completion.bash && echo '[ -f ~/.git-completion.bash ] && . ~/.git-completion.bash' >> ~/.bashrc
101+
```
102+
97103
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
98104
<!-- @doxie.inject end -->

tips.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,9 @@
5454
{
5555
"title": "Stage parts of a changed file, instead of the entire file",
5656
"tip": "git add -p"
57+
},
58+
{
59+
"title": "Get git bash completion",
60+
"tip": "curl http://git.io/vfhol > ~/.git-completion.bash && echo '[ -f ~/.git-completion.bash ] && . ~/.git-completion.bash' >> ~/.bashrc"
5761
}
5862
]

0 commit comments

Comments
 (0)