-
Fork repo into your account via GitHub UI
-
Clone user fork
git clone git@github.com:username/pioneer.gitcd node -
Add original repo as
upstreamgit remote add upstream https://github.com/mi-sec/pioneer.git -
Fetch latest
git fetch upstream -
Ensure your git configuration is good to go
git config user.name "J. Random User"git config user.email "j.random.user@example.com" -
Create an issue on the upstream repo
-
Branch with that issue #
git checkout -b <branch> -t upstream/master -
Fix the issue!
-
Add files to commit
git add my/changed/files -
Commit (72 characters maximum line)
git commit------------------------------------------------------------------------ subsystem: description of changes made More detail Fixes: https://github.com/mi-sec/pioneer/issue/1 Refs: https://github.com/mi-sec/pioneer/pull/2 -
Fetch and Rebase
git fetch upstreamgit rebase upstream/master -
Push
git push origin <branch> -
Open Pull Request on the upstream repo
-
Make updates to the branch as necessary
git add my/changed/filesgit commitgit push origin <branch> -
Synchronize your repo with upstream
git fetch --allgit rebase origin/mastergit push --force-with-lease origin my-branch -
Done!