Skip to content

Instantly share code, notes, and snippets.

@FumiyaShibusawa
Last active November 6, 2018 07:20
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 FumiyaShibusawa/1162fcdd54963825c87c31c831e453a7 to your computer and use it in GitHub Desktop.
Save FumiyaShibusawa/1162fcdd54963825c87c31c831e453a7 to your computer and use it in GitHub Desktop.
tweaking git config so `git fetch` would also get remote PRs
[remote "upstream"]
-url = git@github.com:organization/repository.git
-fetch = +refs/heads/*:refs/remotes/upstream/*
-fetch = +refs/pull/*/head:refs/remotes/upstream/pr/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment