Install git:
apt-get install git
Create a account:
Visit github.com, register a account.
Create a project in github.com.
Create a new repository on the command line:
git config --user.name=***
git config --user.email=***@anycle.com
git config --list
mkdir test
cd test
touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/anycle/test.git
git push -u origin master
Or push an existing repository from the command line:
git remote add origin https://github.com/anycle/test.git
git push -u origin master
Or import code from another repository
You can initialize thie repository with code from a Subversion, Mercurial, or TFS project.