-
Notifications
You must be signed in to change notification settings - Fork 25
Dev: How to contribute code to NFTsim
stuart-knock edited this page Aug 9, 2018
·
2 revisions
We adopt the fork & pull model. The basic workflow is described below.
- Fork NFTsim.
- Clone your fork locally.
- Set an
upstream
repo to pull changes from the main nftsim repo if you want to keep your fork up to date with the base repository. Bear in mind that the default remote branch innftsim
is calledmaster
. Once theupstream
repo is set up you can do:every time you want to fetch the latest changes from the main repo. And NEVER EVER COMMIT TO THEgit pull upstream master
master
BRANCH if you want to contribute some code. - New features should be developed in different branches. So, with a clean, fresh
up-to-date branch
master
ofupstream
you can start by creating a new branch where you'll modify the code:git branch new_feature
- Make some changes in your new branch, stage the files and commit them as usual.
- Push the new branch to your remote repo. Make sure you are in the right branch.
git push origin new_feature
- Send a pull-request.
© Brain Dynamics Group, University of Sydney 2015