We welcome and encourage pull requests from members of our Free Code Camp study group. Follow the steps below to get started:
-
Find an issue that we need help with by filtering the issues by the Help Wanted tag.
-
Let us know that you want to help by posting a comment on the issue.
-
If you need help or want to discuss further feel free to leave a message in our .
-
Fork and clone the main repository
-
Create a new branch named according to the issue you are working on. The name should be prefixed as in the below table:
Type Prefix Example Bug Fix fix/
fix/camper-height
Enhancement feature/
feature/navbar
Camper Data Update update/
update/your-name
git checkout -b type/branch-name
-
Work on the issue, committing to this new branch.
-
When you have finished commit all your changes and rebase from upstream
-
Your Pull Request will be reviewed by members of the core team before being merged to the main repository. You may be asked to make further changes before the Pull Request is accepted.
-
Go to the main page for the repository: https://github.com/FreeCodeCampLondon/FCCLND
-
Click on the 'Fork' button in the upper right hand corner. Detailed instructions here.
-
Once this is done you will be taken to your copy of the repository at
yourUserName/FCCLND
-
Clone your fork locally and
cd
into the new directory:git clone https://github.com/yourUserName/FCCLND.git
cd FCCLND
-
Add the main repository as a remote branch so that you can rebase later
git remote add upstream https://github.com/FreeCodeCampLondon/FCCLND.git
Before making your Pull Request you need to make sure that you are up to date with the main repository.
-
Switch to the
master
branchgit checkout master
-
Update
master
to be inline with the main repositorygit pull --rebase upstream master
-
(Optional) Push
master
to your fork for good measure.git push origin master --force
-
Switch back to your branch (change
type/branch-name
to your branch name)git checkout type/branch-name
-
Rebase your branch from master
git rebase master
-
Push your branch to your fork
git push origin type/branch-name
-
You are now ready to submit a Pull Request
- Once you have pushed all your changes to your fork navigate to the GitHub page for your fork.
- In the Branch menu, choose the branch that you were working on.
- On the right of the page click on New Pull Request
- Change the title to short description of the issue you have worked on
- In the Comment section write a brief outline of the changes you have made.
- End the comment with a new line with the text 'Closes' followed by a '#' and the issue number that your Pull Request relates to. e.g.
Closes #4
- Click on Create pull request
- Your Pull Request will be reviewed by the core team before being merged into the main repository.