Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save yavuztas/4d4595e32c3ed0351b64f4fac1844b99 to your computer and use it in GitHub Desktop.
Save yavuztas/4d4595e32c3ed0351b64f4fac1844b99 to your computer and use it in GitHub Desktop.
# only if you do not add the original repository as upstream
git remote add upstream https://github.com/original_github_username/original_github_repo_name.git
# then fetch and create a new branch for your pr
git fetch --all
git checkout -b new-branch-name-for-pr upstream/master
# pick the commits you want to include in your pr
git cherry-pick a52afa1
git cherry-pick 08f39f7
# last, push your new branch
git push -u origin new-branch-name-for-pr
# now you can easily select this branch and make a pull-request!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment