- Fork open-source project.
- Create branch and make changes.
- Push branch to your fork.
- Visit open-source project and open a pull-request (select your fork's branch).
- Wait for your PR branch to be merged into the open-source project's
master. - Once merged, add the open-source project as a 'remote' (
git remote add upstream <github.com/user/repo.git>). git checkout mastergit fetch upstream(convention states we use 'upstream' as the name of the remote).git rebase upstream/master(alternative to fetch/rebase, isgit pull --rebase upstream master).git push origin master.git branch -d <your-pr-branch>(the PR branch is no longer needed).git push origin --delete <your-pr-branch>.
Last active
June 4, 2025 16:57
-
-
Save Integralist/9822f59cbb60f5de0f79a6cbd79ad9ab to your computer and use it in GitHub Desktop.
GitHub Open-Source Pull Request Flow #git #github
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment