Windows在git远程存储库路径中添加了额外的斜杠

Windows在git远程存储库路径中添加了额外的斜杠,windows,git,Windows,Git,在Windows中,运行后 git remote show origin 我得到一个错误: fatal: '/home/git/repositories//username/git-project.git' does not appear to be a git repository 用户名前有一个额外的斜杠,为什么会这样 这是repo配置:我通过将我的GitLab版本从5.0升级到5.1解决了这个问题在不知道您要运行什么命令的情况下很难判断。repo的.git/config中有什么内容?仅

在Windows中,运行后

git remote show origin
我得到一个错误:

fatal: '/home/git/repositories//username/git-project.git' does not appear to be a git repository
用户名前有一个额外的斜杠,为什么会这样


这是repo配置:

我通过将我的GitLab版本从5.0升级到5.1解决了这个问题

在不知道您要运行什么命令的情况下很难判断。repo的
.git/config
中有什么内容?仅供参考,在*nix系统上,这样一个额外的斜杠不会是一个问题——它会被默默忽略(也就是说,
/
意味着
/
)。也许Windows不是这样工作的,但Git认为会这样?