-
Fork repo into your account via GitHub UI
-
Clone user fork
git clone git@github.com:username/pioneer.git
cd node
-
Add original repo as
upstream
git 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 upstream
git 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/files
git commit
git push origin <branch>
-
Synchronize your repo with upstream
git fetch --all
git rebase origin/master
git push --force-with-lease origin my-branch
-
Done!