Git命令

原文:http://blog.csdn.net/u011008029/article/details/50679359

1.git clone 命令

$ git clone <版本库的网址>

1、比如,克隆jQuery的版本库。

$ git clone https://github.com/jquery/jquery.git
1、上面这种方法表示克隆master分支。

$ git clone -b masterTest <版本库的网址>
1、上面这种方法表示克隆名为masterTest的这个分支。

git branch(查看本地分支)
git branch -r(查看远程分支)
git branch -a(查看本地和远程分支)

你可能感兴趣的:(Git命令)