If you have never used git or GitHub, you may also need to check Hello World in GitHub Guides.
Firstly, You need to Fork gearbox repository
gogearbox/gearbox then clone it on your local machine using
git clone https://github.com/YOUR-USER_NAME/gearbox
- The repository you have forked origin and its link is
- This repository upstream and its link is
Fetch code and create a local branchgit fetch upstreamgit checkout -b LOCAL_BRANCH_NAME upstream/master
Do your code changes then commitgit commit -a -m "Issue #ISSUE_NUMBER: BRIEF_DESCRIPTION."
Push commit you have made to your forkgit push -u origin "LOCAL_BRANCH_NAME"
Create a Pull Request(PR) to the branch master. To notify the reviewer that will review this PR, you can write r? @USER_NAME
After getting reviewers' feedback - if something needs to be changed, added, removed or fixed and these changes are minor (means you didn't get r+, just fix it in a new commit on the same branchgit commit --fixup SHA1_OF_THE_PREVIOUS_COMMIT (You can get it using **git log**)
Use step 3 to update the Pull Request. Repeat steps 5-6 until the review is accepted.
When you notice that there is a change on upstream that affects your patch or files you have worked on, you need to update and rebase your local branchgit fetch upstreamgit rebase upstream/master