Created
April 18, 2017 12:55
-
-
Save kormat/8a78e149a854af11e01a0231a4e785f9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
[ -n "$1" ] || { echo "Must supply remote name"; exit 1; } | |
orig=$(git config --get remote."$1".fetch) | |
echo "$orig" | |
git config --add remote."$1".fetch "+refs/pull/*/head:refs/remotes/$1/pr/*" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This sets up the lines in the wrong order.