克隆仓库 git clone [仓库地址]
克隆远程分支的一个分支 git clone -b <branch> <remote_repo>
查看本地分支 git branch
查看远程分支 git branch -r
查看所有分支 git branch -a
新建一个分支 git checkout -b [分支名]
新建一个本地的远程仓库的某分支 git checkout -b [分支名] origin/[分支名]

把远程仓库(master)更新到本地仓库 git fetch [远程主机名] git fetch origin
从远程仓库更新某个分支更新到本地分支 git fetch [远程主机名] git fetch origin jrpass
拉取新代码 git pull [远程仓库名] [远程分支名字]/[本地分支名]
网友评论