我首先創建了檔案名“Buypage”并執行了 git commit。
之后我將其更改為“BuyPage”,但 git 并不關心它。
每當我在提交或更改分支之間移動時,檔案名都會回傳到它的舊名稱。
我嘗試使用“git mv Buypage BuyPage”命令更改它,但它給了我一個錯誤。
error fatal: bad source
我通過谷歌搜索發現上述錯誤是僅在 Windows 上發生的問題。
但我不知道如何解決
uj5u.com熱心網友回復:
在 Windows CMD 會話中嘗試:
git -c core.ignorecase=false mv -f Buypage BuyPage
然后檢查是否git status顯示:
Changes to be committed:
(use "git restore --staged <file>..." to unstage)
renamed: Buypage -> BuyPage
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/362468.html
標籤:混帐
上一篇:預推git鉤子沒有被拿起
