Changing case of Folder via Git bash on Windows

前端 未结 4 1876
迷失自我
迷失自我 2021-02-01 02:54

I need to change the case of folders and files. First thing I tried was renaming the folders, but Git didn\'t pick up the changes. So I tried using git mv -f co

4条回答
  •  说谎
    说谎 (楼主)
    2021-02-01 03:58

    In summary of the comments, you'll have to rename the directory via a intermediate temporary name. E.g.

    git mv controller Controller-tmp
    git mv Controller-tmp Controller
    

    I think this has to do with the fact that the MinGW implementation of rename(2) does not support this operation. See this thread, the MSDN docs on the CRT rename implementation and those of the MoveFileEx function.

提交回复
热议问题