1. Installation
$ git config --global user.name "yourname"
$ git config --global user.email "youremail"
$ ssh-keygen -t rsa -C "youremail"
2. Local repository
$ git init
3. Submit
$ git add filename
$ git commit -m "description"
4. Operations
$ git status
$ git rm filename
$ git push origin master
$ git pull
5. Remote repository
$ git remote add origin [email protected]:accountname/reponame.git
$ git push -u origin master
$ git clone [email protected]:accountname/reponame.git