【发布时间】:2017-10-14 11:14:16
【问题描述】:
我在使用 git 时遇到了一个奇怪的问题。 简单来说,我只是克隆了一个 git 存储库,进行了一些更改、添加、提交和推送。一切正常,除了 push 命令。
git push -u origin master
fatal: http://myusername@www.mygit.com/pathto/cv.git/info/refs not valid: is this a git repository?
为什么我的网址上有 /info/refs ? 当我检查我没有那个。
git remote -v
origin http://myusername@www.mygit.com/pathto/cv.git (fetch)
origin http://myusername@www.mygit.com/pathto/cv.git (push)
或
git config -l | grep remote.origin.url
remote.origin.url=http://myusername@www.mygit.com/pathto/cv.git
提前感谢您未来的回答
【问题讨论】:
标签: git url repository push