Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Guide for starters
This is by no means a whole guide for git. It is just a quick guide for people who don't know how to use git with github in order to learn some basics.
First of all there are some guis for git such as gitk,git-gui and smartgit. More can be found here
This guide is for base git (terminal)
The idea of git and github is that you have a local repository of the project(The Kingdoms Of Chaos in our situation), you host it in github and you have these 2 repos synchronized.
To configure your username and email use the next two commands:
git config --global user.name "your_username"
git config --global user.email firstname.lastname@example.org
First of all lets say you want to clone the tkoc project at a local repo.
git clone email@example.com:tkoc/The-Kingdoms-Of-Chaos.git
This is the command to do it and it will download the project into a new directory called The-Kingdoms-Of-Chaos in your current directory.
Then you should
cd The-Kingdoms-Of-Chaos to get into your repo.
There should be two directories. Stable and beta.
git branch will show you the branches of the project
With that command you should see two branches, stable and beta.
git checkout stable will let you select the stable branch of the project and
git checkout beta will let you select the beta branch.
##COMMITING After that you should have the files in your local repository. Let's say you want to edit the file about.php. Assuming you are in the right branch the procedure is :
- Edit the file with your favorite editor.
git add about.php
git commit -m 'small description of your commit'
git push origin beta(stable)depending on the branch.
This will push the file about.php in the github repository.
For more information read the github help