'git clone' 错误(.git/config:无效参数)

问题描述 投票:0回答:0

将远程 (gitlab) 存储库克隆到映射为 Windows 驱动器的服务器时,出现以下错误:

error: opening <repo-path>.git/config: Invalid argument
fatal: could not set 'core.bare' to 'false'

以前,克隆没有问题,我可以在本地克隆 repo。 此外,对已经在该服务器上克隆的存储库进行 git 操作存在严重问题,例如我无法切换/结帐到其他分支,出现错误

error: unable to read sha1 file of <file-name> (0df6c7c98693182e24dad4eef4b035efc0e4ad57)

我试图将服务器映射到另一封信。
我使用 git bash 和 TortoiseGit,最近将 git for windows 更新到最新版本 (2.40.0.windows.1)。
驱动器使用 VPN 连接。

server vpn drive git-for-windows
© www.soinside.com 2019 - 2024. All rights reserved.