What is git?

git is a free and open source distributed version control system

How to use git?

type "git" in command line and you will see the usage

How to get source code of some project by git?

git clone https://github.com/ray20140811/JustForFun.git

How to add one new file?

touch hello.txt

git add hello.txt

How to upload to the git server?

git commit -m 'add hello.txt for test'

git push origin master

How to sync local with remote

git pull

How to see the status

git status

How to remove one file

git rm hello.txt

git commit -m "remove hello.txt for test"

git status

git push

These are Git command used in various situations as below