Skip to content

Instantly share code, notes, and snippets.

@JetStarBlues
Last active April 9, 2021 16:03
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 JetStarBlues/7b57e7ba7d1bb38e6827a1d54d10e455 to your computer and use it in GitHub Desktop.
Save JetStarBlues/7b57e7ba7d1bb38e6827a1d54d10e455 to your computer and use it in GitHub Desktop.
Using a new branch to create pull requests

Using a new branch to create pull requests

Taken from slides from the "Getting Started with Open Source" talk at RC

  1. Fork and clone
  2. Create a new branch
    • git checkout -b branchName
    • or git switch -c branchName (more info)
  3. Do the fix
  4. Commit the changes
  5. Push the branch to github
    • git push origin branchName
  6. Create a pull request (referencing the branch)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment