From 03f10d90fe504eb8cc2a619a48ca5360c0d0b0ef Mon Sep 17 00:00:00 2001 From: Marielle Volz Date: Mon, 5 Nov 2018 12:22:26 +0000 Subject: [PATCH] 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. --- tips.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tips.json b/tips.json index 43accfe..7bef1dd 100644 --- a/tips.json +++ b/tips.json @@ -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'",