Skip to content

Instantly share code, notes, and snippets.

@kapoorlakshya
Last active May 1, 2019 22:51
Show Gist options
  • Save kapoorlakshya/a99b3525b423c556833042f9f6da427b to your computer and use it in GitHub Desktop.
Save kapoorlakshya/a99b3525b423c556833042f9f6da427b to your computer and use it in GitHub Desktop.
Checkout BitBucket PR
git remote add my_remote <git_clone_URL_of_repo>
git remote -v # Verify repo was added
git config --add remote.my_remote.fetch +refs/pull-requests/*/from:refs/remotes/my_remote/pr/* # Configure to fetch PR
git fetch qa -p # Fetch PRs and remove links to merged PRs
git branch -a # List all branches and PRs
git checkout -t my_remote/pr/45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment