Skip to content

Commit 03f10d9

Browse files
authored
Add -L to follow redirects
As per the comments in #154, use -L to follow the redirect for curl. The tip as written does not currently work as it downloads the html for the redirect page instead.
1 parent 9612421 commit 03f10d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tips.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
"tip": "git add -p"
105105
}, {
106106
"title": "Get git bash completion",
107-
"tip": "curl http://git.io/vfhol > ~/.git-completion.bash && echo '[ -f ~/.git-completion.bash ] && . ~/.git-completion.bash' >> ~/.bashrc"
107+
"tip": "curl -L http://git.io/vfhol > ~/.git-completion.bash && echo '[ -f ~/.git-completion.bash ] && . ~/.git-completion.bash' >> ~/.bashrc"
108108
}, {
109109
"title": "What changed since two weeks?",
110110
"tip": "git log --no-merges --raw --since='2 weeks ago'",

0 commit comments

Comments
 (0)