Skip to content

Latest commit

 

History

History
41 lines (25 loc) · 1.48 KB

CONTRIBUTING.md

File metadata and controls

41 lines (25 loc) · 1.48 KB

Contributing to react-github

For a step-by-step guide on how to make your first contribution

Contribution process overview

  1. Fork this project.
  2. Create a feature branch.
  3. Make your changes.
  4. Run the project locally
  5. Push your changes to your fork/branch.
  6. Open a pull request.

1. Fork

  1. Click the fork button up top.
  2. Clone your fork locally (Notice that git's origin reference will point to your forked repository).
  3. It is useful to have the upstream repository registered as well using: git remote add upstream https://github.com/prokawsar/react-github.git and periodically fetch it using git fetch upstream.

2. Create a feature branch

Create and switch to a new feature branch: git checkout -b {branch_name} upstream/master
(replace {branch_name} with a meaningful name that describes your feature or change).

3. Make your changes

Now that you have a new branch you can edit/create/delete files. Use touch-up commits using git commit --amend. (You may use git force push after that).

4. Run the game locally

  • Install the dependencies: npm install.
  • Start the local development server: npm start.

5. Push your changes to your fork/branch

After lint and all tests pass, push the changes to your fork/branch on GitHub: git push origin {branch_name}. For force push, which will destroy previous commits on the server, use --force (or -f) option.

6. Create a pull request

Create a pull request on GitHub for your feature branch.