A project for learning the github workflow.
Feel free to open pull requests and play around to see how the github workflow works.
-
Fork this github repository. Use the "Fork" button on the github page. You have now your own version of this repository you can submit changes to.
-
Clone your fork of the repository, e.g:
git clone [email protected]:YOURNAME/github-playground.git
-
Create a local branch that holds your bugfix:
git checkout -b my-fix-branch
-
Fix the bug!
-
Commit:
git add . git commit -m "I fixed the thing!"
-
Push your local commit to your github repository:
git push origin my-fix-branch
-
Make a pull request on the github page
-
Get changes from main repository back into your fork and clone. First, make the main repostory known within your project (only do this once):
git upstream [email protected]:rbreu/github-playground.git
Then you can get the changes by either:
git pull upstream master
or:
git fetch upstream git checkout master git rebase upstream/master
Push to your clone
git push origin master