赞
踩
~/Aliyun/alioss-file on master ⌚ 16:27:53
$ git pull
fatal: No remote repository specified. Please, specify either a URL or a
remote name from which new revisions should be fetched.
这个时候,需要编辑项目下的.git文件夹中
~/Aliyun/alioss-file on master ⌚ 16:41:37
$ cd .git
~/Aliyun/alioss-file/.git on master ⌚ 16:55:24
$ ls
COMMIT_EDITMSG ORIG_HEAD description info refs
FETCH_HEAD branches hooks logs
HEAD config index objects
~/Aliyun/alioss-file/.git on master ⌚ 16:55:54
$
编辑vi config
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
precomposeunicode = false
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = https://github.com/xiongben-tongxue/alioss-file.git
pushurl= https://github.com/xiongben-tongxue/alioss-file.git
[branch "master"]
remote = origin
merge = refs/heads/master
将下面这两项换成你自己的
url = https://github.com/xiongben-tongxue/alioss-file.git
pushurl= https://github.com/xiongben-tongxue/alioss-file.git
保存后就搞定了。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。