-
Notifications
You must be signed in to change notification settings - Fork 445
Contribution Process
Baohua Yang edited this page Oct 11, 2019
·
20 revisions
Fork from the hyperledger/cello project, as your own project.
And clone it to local:
$ git clone [email protected]:<GITHUB_USER>/cello.git
Now you will be on the master branch of your repo.
Enter the repo and setup the official repo as the upstream
$ cd cello
$ git remote add upstream https://github.com/hyperledger/cello.git
Checkout a new feature branch, commit the code change and push to your repo.
$ git fetch upstream master && git rebase FETCH_HEAD && git push -f origin
$ git checkout -b fix_bug
$ # do the code change
$ git commit -a -s
$ git push
Open your project repo at github, and create a pull request from the new fix_bug
branch back to the official Cello project.
TODO: how to create pull request via the CLI?
https://hub.github.com/ might be helpful, but not test yet.
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/