In the .git/config
file add the fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
to the remote you want to fetch references to PR:s from.
Last active
July 19, 2016 18:36
-
-
Save voxpelli/1b06b4ae3f2c691786a2 to your computer and use it in GitHub Desktop.
How to get references to all PR:s on a "git fetch origin" – forgot where I found this, but rediscovered the setup in one of my local repos
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
[remote "origin"] | |
url = [email protected]:voxpelli/node-pg-pubsub.git | |
fetch = +refs/heads/*:refs/remotes/origin/* | |
fetch = +refs/pull/*/head:refs/remotes/origin/pr/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment