Skip to content

Instantly share code, notes, and snippets.

@BRAVO68WEB
Last active November 11, 2020 16:16
Show Gist options
  • Save BRAVO68WEB/1b660376c16d0e93ad3fdd188d109909 to your computer and use it in GitHub Desktop.
Save BRAVO68WEB/1b660376c16d0e93ad3fdd188d109909 to your computer and use it in GitHub Desktop.
PR Creator

Example workflow for contributing to a project:

$ git clone <url/project-name> $ cd

Create a topic branch

$ git checkout -b new-feature $ git add .

( making changes ... )

$ git commit -m "done with feature"

It's time to fork the repo!

$ hub fork

(forking repo on GitHub...)

$ git remote add YOUR_USER git://github.com/YOUR_USER/hub.git

push the changes to your new remote

$ git push YOUR_USER new-feature

open a pull request for the topic branch you've just pushed

$ hub pull-request

(opens a text editor for your pull request message)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment