我有一个托管在 Assembla 上的 Git 存储库,我正在尝试为其执行:
git push -u origin master
我一遍又一遍地收到以下错误:
fatal: https://[url]/[repo-name].git/info/refs not valid: is this a git repository?
我已经尝试过这里的答案但没有成功:Git .git/info/refs not valid: is this a git repository?
当我使用时:
git status
我得到:
On branch master
Your branch is ahead of 'origin/master' by 1 commit.
(use "git push" to publish your local commits)
nothing to commit, working tree clean
最佳答案
git remote show origin
显示我尝试推送到的远程存储库不正确。
修复后:
git remote set-url origin [REPO-URL]
问题解决了。
关于git - 致命 : . git/info/refs 无效 : is this a git repository?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43049278/