Fork, Issues & Pull Request
Might be usefull to have a SSH connection setup
(Use ssh-keygen -t rsa -C "youremail@gmail.com"
and add the public key to your Github account)
Close an issue
you can close an issue with a special syntaxe in your bug solving commit
Tip
You can replace “fixes” keyword with any in this list :
“Fixed”, “Fix”, “Closes”, “Closed”, or “Close”
Fork a repository
Allow user to work on his own version of a repository
Validation is needed to add changes to the main project via a pull request
Danger
Never do commits to your fork master. Always work on a branch
Master branch should only be used to synchronize your fork with owner repository
Initial Fork
Just go to a Github repository and click the “Fork” option This also import repository history
Now clone this, do your changes and push it to a remote branch
Tip
Always create a new branch because you don't want to do pull request on master since the main project master might have changed in between.
Upstream Fork
If you want to update your fork with owner changes Checkout master branch
Info
You should see this :
Now you need to collect code from the upstream remote :
Info
You should get a remotes/upstream/master
Now merge with your local master :
Pull request
Do this on Github with the “Pull Request” option
Repo owner will get a notification and accept or not your request
A pull request conversation is created to discuss about potential changes to make