Points of Git

Clone

Branch

List branches

1
2
3
> git branch -r // remote branches

> git branch -a // all branches

Commit

1
> git commit

Merge

Pull

1
> git pull <远程主机名> <远程分支名>:<本地分支名>

Push

1
> git push <远程主机名> <本地分支名>:<远程分支名>

Fetch

1
> git fetch <远程主机名> <分支名>

Checkout

1
> git checkout