About
This is intended to be a play ground.
If you want to see your edits in the proper way, you must install and use jekyll.
Installing git:
- On windows: git for windows
- On linux
apt-get install git git-gui
or something similar on redhat, centos and such
Part I: How to contribute to this/any github project
-
Go to the project
-
click fork project
-
git clone git@github.com:<your user>/git-demo
-
edit project (e.g. add an .md file)
-
git add
changes -
git commit
and give a proper description -
Repeat 4-6
-
git push
to send the changes to github. -
Go to
https://github.com/<your user>/git-demo
-
Click create pull request
-
Write some nice description
-
Wait for moozer to approve and merge the update
Part II: Synchronizing with upstream
Updates to upstream will not automatically get into the fork.
-
create a new remote repository reference (following this quide)
git remote add upstream https://github.com/moozer/git-demo.git
-
Sync with upstream (see this for details)
git pull upstream gh-pages
-
resolve any issues
-
git push
to send it to your own repository
Part III: moreā¦
We have not talked about branches even though they are very fundamental.
Notice that we have bith master and gh-pages branch. See doc for reasons.