【发布时间】:2021-10-01 07:28:41
【问题描述】:
我有一个托管在 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,您是否看到您对获取和推送 URL 下的 URL 的期望?应该类似于 git@git.assembla.com:[REPO-NAME].git -
你是对的,网址输入不正确,非常感谢!
-
我遇到了类似的错误,但是,在我的情况下,这是由我的 cntlm 代理配置引起的。