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.
This commit is contained in:
Marielle Volz 2018-11-05 12:22:26 +00:00 committed by GitHub
parent 96124215b6
commit 03f10d90fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@
"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"
"tip": "curl -L http://git.io/vfhol > ~/.git-completion.bash && echo '[ -f ~/.git-completion.bash ] && . ~/.git-completion.bash' >> ~/.bashrc"
}, {
"title": "What changed since two weeks?",
"tip": "git log --no-merges --raw --since='2 weeks ago'",