为本地仓库增加remote url的问题

16 views
Skip to first unread message

cjp20...@gmail.com

unread,
Jan 6, 2016, 3:11:58 AM1/6/16
to Git中文用户组
最近在学习git pro这本书的时候遇到个问题,绕不过去,特来求助,若有解答,不胜感激
首先我在本地初始化了个本地仓库,然后添加了些文件。
这时,我想在其他目录对这个项目进行clone。
git clone /Users/luckyChen/sgt/.git 
ok,没有问题,克隆成功;
然后想添加该仓库为一个远仓库:
git remote add test /Users/luckyChen/sgt.git
ok,添加成功了,然后我执行clone操作,去到sgt2目录下执行
git clone /Users/luckyChen/sgt.git,报错如下
'/Users/luckyChen/sgt.git' does not exist

请问如果我本地想通过git clone /Users/luckyChen/sgt.git方式进行克隆,该怎么做呢?

Wendal Chen

unread,
Jan 6, 2016, 3:36:03 AM1/6/16
to git...@googlegroups.com
已有的库不能再进行clone操作的

你需要的应该是 git pull test master

--
您收到此邮件是因为您订阅了Google网上论坛上的“Git中文用户组”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到git123+un...@googlegroups.com
要查看更多选项,请访问https://groups.google.com/d/optout



--
Wendal Chen
GuangDong China
Reply all
Reply to author
Forward
0 new messages