我正在研究工艺cms应用程序。仓库有3个遥控器:
所有的遥控器过去都可以工作,但是随后生产却无缘无故中断了。
错误的外观如下:
fatal: '/srv/users/******/apps/****/repo' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
这是服务器上配置文件的外观
[core]
repositoryformatversion = 0
filemode = true
bare = true
[remote "origin"]
url = [email protected]:****/****.git
fetch = +refs/*:refs/*
mirror = true
考虑到它曾经起作用,不知道还要检查什么:-(
更新。
原来该object
文件夹滑入另一个文件夹(感谢我的老板),只需将其移回即可解决该问题!
这取决于产生错误的命令。
git ls-remote production
应该管用。
但是您当前的本地配置不会显示任何远程“ production
”来源,因此您可能需要重新添加它。
我问OP Mikhai Cheburakhtin在交互式远程shell会话中是否可以访问/srv/users/serverpilot/apps/****/repo
,并git log
在其中进行操作:
是的,我可以,但是会引发错误:致命:不是git存储库(或任何父目录):
.git
这将解释错误消息。
OP添加:
我开始比较回购文件
objects
夹,发现缺少的文件夹,然后在另一个文件夹中找到它:因此,只需将该文件夹移回原处即可解决问题!
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句