Skip to content

Instantly share code, notes, and snippets.

@sivakumar-kailasam
Created December 10, 2017 03:14
Show Gist options
  • Save sivakumar-kailasam/b173e86facdf19d12740861505a1395f to your computer and use it in GitHub Desktop.
Save sivakumar-kailasam/b173e86facdf19d12740861505a1395f to your computer and use it in GitHub Desktop.
Using hub to work with Github projects

Installation

Follow the instructions at https://github.com/github/hub#installation to install hub

Contributing to a project

Let's say we'd like to help out https://github.com/ember-learn/super-rentals in this example.

  • In your machine run hub clone ember-learn/super-rentals & then cd cd super-rentals
  • Then run hub fork, this will automagically fork the current repo under your github username & you'll see the repo getting copied over in the output
  • Run git checkout -b my-fixes where my-fixes is the name of the branch where you'll be coding your changes.
  • Once you've made all the commits run git push YOUR_GITHUB_USER_NAME my-fixes, this will push the code from your branch to your copy of the repo under your github user name.
  • Now you can run git pull-request from the command line to create a pull request which will give you the link to the created PR.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment