为什么远程 git 存储库没有将文件夹名称更改为小写

why the remote git repo did not change the folder name to lowercase

我在repo中有一个名为Pictures的本地文件夹,将文件夹重命名为小写后pictures,远程repo文件夹名称仍然为Pictures。我试过这个命令:

$ git mv Pictures pictures
fatal: renaming 'Pictures' failed: Invalid argument

没用。怎样才能让远程githubrepo文件夹名转为小写?我已将文件夹 pictures 重命名为大写并通过添加强制使用此命令:

$ git mv Pictures pictures --force
fatal: renaming 'Pictures' failed: Invalid argument

还是不行。我的 OS 是 macOS Monetey 12.3.1 with arm chip.

尝试使用:

1)

run this in bash git config --global core.ignorecase false 
     -f
    --force

即使目标存在也强制重命名或移动文件

或者如果这不起作用

2)

git mv Pictures pictures1
git mv pictures1 pictures

这是两步过程