For a step-by-step guide on how to make your first contribution
- Fork this project.
- Create a feature branch.
- Make your changes.
- Run the project locally
- Push your changes to your fork/branch.
- Open a pull request.
- Click the fork button up top.
- Clone your fork locally (Notice that git's
origin
reference will point to your forked repository). - 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 usinggit fetch upstream
.
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).
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).
- Install the dependencies:
npm install
. - Start the local development server:
npm start
.
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.
Create a pull request on GitHub for your feature branch.