Created
September 5, 2014 15:22
-
-
Save ekohl/af98a2fde8822bd1598c to your computer and use it in GitHub Desktop.
pullify as taken from some other gist.
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
pullify() { | |
REMOTES=$( | |
echo '+refs/pull/*/head:refs/remotes/origin/pr/*' ; | |
git config --get-all remote.origin.fetch | grep -v 'refs/remotes/origin/pr/\*$' | |
) | |
git config --unset-all remote.origin.fetch | |
echo "$REMOTES" | while read LINE ; do | |
git config --add remote.origin.fetch "$LINE" | |
done | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment