Skip to content

Instantly share code, notes, and snippets.

@ekohl
Created September 5, 2014 15:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ekohl/af98a2fde8822bd1598c to your computer and use it in GitHub Desktop.
Save ekohl/af98a2fde8822bd1598c to your computer and use it in GitHub Desktop.
pullify as taken from some other gist.
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