Skip to content

Instantly share code, notes, and snippets.

@nenodias
Created April 26, 2018 17:31
Show Gist options
  • Select an option

  • Save nenodias/16946debfbb39088c98252f4cfa028b8 to your computer and use it in GitHub Desktop.

Select an option

Save nenodias/16946debfbb39088c98252f4cfa028b8 to your computer and use it in GitHub Desktop.
hub github fork e pull request

Example workflow for contributing to a project:

$ git clone github/hub $ cd hub

create a topic branch

$ git checkout -b feature

( making changes ... )

$ git commit -m "done with feature"

It's time to fork the repo!

$ git 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 feature

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

$ git 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