克隆仓库

克隆仓库:git   clone    原始仓库     新仓库

git   remote:列出已经存在的远程分支

添加跟踪远程分支的本地分支

git   branch   --track   本地分支名称     远程分支的名称

裸仓库

git   clone   --bare    原仓库名称    裸仓库名称

例如:git    clone   --bare   hello     hello.git

结尾带.git的仓库习惯约定是裸仓库。

添加远程仓库

git   remote   add   shared   裸仓库的名称

例如:

git  remote   add   shared   ../hello.git

查看远程仓库

git   remote

查看远程仓库的详细信息

git   remote    -v

你可能感兴趣的:(克隆仓库)