Skip to content

Instantly share code, notes, and snippets.

@harshraj8843
Created September 22, 2021 04:40
Show Gist options
  • Select an option

  • Save harshraj8843/902154677606a9207514966859c1da77 to your computer and use it in GitHub Desktop.

Select an option

Save harshraj8843/902154677606a9207514966859c1da77 to your computer and use it in GitHub Desktop.
Create pull request with specific commit (for forked repos)
# If you haven't set up your remote yet, run this line:
# git remote add upstream https://github.com/konradjk/exac_browser.git
git fetch --all # Get the latest code
git checkout -b my-single-change upstream/master # Create new branch based on upstream/master
git cherry-pick b50b2e7 # Cherry pick the commit you want
git push -u origin my-single-change # Push your changes to the remote branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment