我有一个在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存储库吗?
我用的时候:
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
Omri Shneor.. 8
git remote show origin
表明我试图推送的远程存储库不正确.
修好之后:
git remote set-url origin [REPO-URL]
问题解决了.
git remote show origin
表明我试图推送的远程存储库不正确.
修好之后:
git remote set-url origin [REPO-URL]
问题解决了.