Skip to content

Contribution Process

litong01 edited this page Oct 11, 2019 · 20 revisions

Install hub tool in your environment, once you have hub tool installed, you can use hub command anywhere you use git command since hub is a wrapper to git. hub requires git to be present in your system, so do not remove git.

Clone and Fork the project

$ hub clone https://github.com/hyperledger/cello.git
$ cd cello
$ hub fork

When you do hub fork, it will ask for your github user id and password, you will need to provide your access token as password, your real password will not work.

After this is done, you should see a new repo named cello in your own github account.

If you look at your .git/config file, you should have two remotes, one is named origin and the other is named using your id, and one branch named master.

Contribute code

Checkout a new feature branch, commit the code change and push to your repo.

$ hub checkout -b fix_bug
$ # do the code change at fix_bug branch
$ hub commit -a -s
$ hub push --set-upstream origin fix_bug

Create a pull request

$ hub pull-request

Optionally.

This document uses a tool and seems to me made the process extremely simple and all in command line.

https://julien.danjou.info/git-pull-request-command-line-tool/

Clone this wiki locally