致命的:.git / info / refs无效:这是一个git存储库吗? [英] fatal: .git/info/refs not valid: is this a git repository?
本文介绍了致命的:.git / info / refs无效:这是一个git存储库吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
git push -u origin master $ b $在Assembla中我有一个git仓库, b
即时得到以下错误:
致命:https:// [url] / [repo-name] .git / info / refs无效:这是一个git存储库吗?
我在这里没有任何成功的答案: Git .git / info / refs无效:这是一个git存储库吗?
当我使用时:
git status
我得到:
On分支大师
您的分支在1次提交之前领先于origin / master。
(使用git push发布你的本地提交)
没有提交,工作树干净
<解决方案
git remote show origin
显示我尝试推送的远程回购也不正确。 b
$ b
git remote set-url origin [REPO-URL]
code>
问题解决了。
I have a git repo hosted at Assembla whom im trying to preform:
git push -u origin master
im getting the following error over and over again:
fatal: https://[url]/[repo-name].git/info/refs not valid: is this a git repository?
Ive tried the answer here without any success:Git .git/info/refs not valid: is this a git repository?
when I use:
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
showed that the remote repo i tried to pushed too wasnt correct. after fixing that with:
git remote set-url origin [REPO-URL]
the problem was solved.
这篇关于致命的:.git / info / refs无效:这是一个git存储库吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文