- Fork the repo first
- Clone it
- Add upstream remote
git remote add upstream <URL>
- Fetch the latest changes/commits from upstream
git fetch upstream
- Create a new branch for the fix or feature by tracking upstream/master or any upstream branches
git checkout -b my_fix_or_feature --track upstream/master
-
Make changes/commits
-
Push to orgin/<branch_name>
- Optionally force push to origin/<branch_name>
-
Create PR from github web UI