Adapted from this Guide from DataSchool
Finding a Project
https://goodfirstissues.com/
https://www.codetriage.com/
https://up-for-grabs.net/
https://firstcontributions.github.io/
http://www.pullrequestroulette.com/
Setup Steps (Once Per Project)
In GitHub, fork project repo
-
From your personal repo, clone code
git clone [URL]
-
Verify your repo is the origin remote
git remote -v
-
Add project repo by cloning code
git remote add upstream [URL]
Contribution Steps (Once Per Change)
-
Pull latest project changes
git pull upstream main
Comment on issue requesting to be assigned (or assign yourself if allowed)
-
Create new branch for your development
git checkout -b [branch-name]
-
Make changes, add, and commit; link PR to the issue by writing "Resolves #[issue-number]"
- Be sure to follow any contributing guidelines or formatting specific to the project
git add .
git commit -m "Resolves #123; message here"
-
Push to fork
git push origin [branch-name]
In GitHub, click 'Compare & Pull Request'
Review details and click 'Create Pull Request'
Wait for comments/corrections or for project owner to approve the change
-
After merge, delete branch from fork on GitHub and from local
git checkout main
git branch -D [branch-name]
-
To sync fork with project, Pull latest changes from upstream to local
git pull upstream main
-
Push local to origin fork
git push origin main
Top comments (0)