git-github-refs (224B)
1 #!/usr/bin/env bash 2 3 set -e 4 5 upstream=${1:-origin} 6 7 git config --add "remote.$upstream.fetch" "+refs/pull/*/head:refs/pull/$upstream/*" 8 git config --add "remote.$upstream.fetch" "+refs/pull/*/merge:refs/merge/$upstream/*" 9 10