Skip to content

Instantly share code, notes, and snippets.

@wilhelmberg
Created January 16, 2018 15:51
Show Gist options
  • Save wilhelmberg/f8ded061d91b7083b758827864b9de75 to your computer and use it in GitHub Desktop.
Save wilhelmberg/f8ded061d91b7083b758827864b9de75 to your computer and use it in GitHub Desktop.
pull a PR branch from a foreign repo (fork) into local repo
cd <clone_dir>
git fetch origin pull/<PR#>/head:<foreign-branch>
git checkout <foreign-branch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment