Use github’s interface to make a fork of the repo, then add that repo as an upstream remote:
git remote add upstream https://github.com/reactorcore/<NAME_OF_REPO>.git
- Do 'git pull --rebase upstream master' on the master branch of your forked repo
- Cut a namespaced feature branch from master using the following convention
- bug/...
- feat/...
- test/...
- doc/...
- refactor/...
for example: 'git checkout -b test/newTest'
- Switch to your branch (in terminal or in editor)
- Do a 'git pull --rebase upstream master' in your feature branch
- Make commits to your feature branch
- Do a 'git pull --rebase upstream master' to check for conflicts
- Push the commits on your feature branch to Github
- Open a pull request on your feature branch
- Assign two reviewers
- After the pull request is merged, switch back to your master branch in your terminal or editor
- Do a 'git pull --rebase upstream master' to bring the changes from your merged PR into your local master branch
- Do a 'git status' to check if there are any commits on your local master branch that need to be pushed
- Push any commits that exist in order to bring your local master branch in sync with your master branch on github
- Start from the top for your next feature branch
- Fork the repo
- Cut a namespaced feature branch from master
- bug/...
- feat/...
- test/...
- doc/...
- refactor/...
- Make commits to your feature branch. Prefix each commit like so:
- (feat) Added a new feature
- (fix) Fixed inconsistent tests [Fixes #0]
- (refactor) ...
- (cleanup) ...
- (test) ...
- (doc) ...
- When you've finished with your fix or feature, Rebase upstream changes into your branch. submit a [pull request][] directly to master. Include a description of your changes.
- Your pull request will be reviewed by another maintainer. The point of code reviews is to help keep the codebase clean and of high quality and, equally as important, to help you grow as a programmer. If your code reviewer requests you make a change you don't understand, ask them why.
- Fix any issues raised by your code reviwer, and push your fixes as a single new commit.
- Once the pull request has been reviewed, it will be merged by another member of the team. Do not merge your own commits.
- Open a terminal window alongside your editor and browser
- Run 'npm start' window which will load the React dev live server and proxy any requests to the Express backend along with opening a browser window to view the changes
- Make changes to the code and save to see live client and server updates.