我有一个托管在 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 无效:这是一个 git 存储库吗? https://stackoverflow.com/questions/34302709/git-git-info-refs-not-valid-is-this-a-git-repository
当我使用时:
git status
I get:
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]
问题解决了。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)