layout | title | permalink |
---|---|---|
page |
About |
/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
-
Go to the project
-
click fork project
-
git clone [email protected]:<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 {{site.github_username}} to approve and merge the update
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/{{site.github_username}}/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
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.