Git .git/info/refs 无效:这是一个 git 存储库吗? [英] Git .git/info/refs not valid: is this a git repository?
问题描述
我的 CentOS 服务器出现了一个奇怪的问题.我的存储库托管在 Bitbucket 上,直到昨天它们都运行良好.
I'm getting a strange problem in my CentOS server. My repositories are hosted on Bitbucket, and they were working fine until yesterday.
这就是问题所在.当我尝试从我的 CentOS 终端推送或拉取时,我收到以下错误.
Here is the problem. I get the following error when I try to push or pull from my CentOS terminal.
fatal: https://[url]/[repo-name].git/info/refs not valid: is this a git repository?
我可以在我的 Windows 计算机上使用 SourceTree 管理相同的存储库而不会出现问题.但我也需要能够使用终端来管理它们.
I can manage the same repositories using SourceTree on my Windows computer without a problem. But I need to be able to manage them using the terminal as well.
我该如何解决这个问题?
How do I get over this problem?
我服务器上的 Git 版本是 1.8.2.1,直到昨天它都可以正常工作.
The Git version on my server is 1.8.2.1, and it was working fine until yesterday.
推荐答案
我相信 Bitbucket 今天刚刚更改了他们的 IP 地址.您的防火墙是否有问题?
I believe Bitbucket just changed their IP address today. Are you perhaps having issues with your firewalls?
这篇关于Git .git/info/refs 无效:这是一个 git 存储库吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!