Fork, Clone, Remote and Pull Request
To contribute to the project you may work on the frontend or backend of the project.
#
Fork the repo
Click on the Fork button. This will create your copy of the repo on GitHub.
#
CloneAfter forking, run the following commands in your terminal:
OR
#
Add RemoteIf you have forked and cloned the repo, on entering git remote -v
you should see the following output:
Now you need to add another remote named upstream (you may change if you wish, but this is a git convention). Run this command:
The output of git remote -v
now changes to:
#
Working on an IssueNow that you have setup the project, you need to search for anything to work on which interests you. Have a look at the Backend Issues or Frontend Issues, whichever interests you.
- Once you find an unassigned issue that you wish to solve, comment below the issue asking whether you should work on it or not.
- Wait for a Mentor/Admin to assign it to you and start working on it.
#
Making a Pull RequestAfter working on an issue, adding relevant documentation and tests, you need to push your changes to your forked repository and make a pull request. You should always push your changes in a different branch (not master).
Make the relevant changes and then commit with a proper message:
Now push the changes:
Now in the GitHub repo click on New Pull Request
Choose the branch you pushed. Make your PR informative by adding screenshots, Issue link and descriptive details regarding what it does and then submit it.
Note: For more detailed understanding visit this page.
Congratulations! You have contributed to AnitaB.org Open Source successfully.