iT邦幫忙

1

資料夾上git 後 英文大小寫不分

git

問題原因:

Test 資料夾 修改成 test資料夾 發現沒有commit沒有顯示變動

解決方法:

git config core.ignorecase false 此用法在windows 比較適合

ignorecase 意思為 忽略任何大小寫

  • 延伸問題

當你切換到就分支後 你會出現下面錯誤訊息,然後不能切換分支也不能強制刪除分支

The following untracked working tree files would be overwritten by checkout

解決方式

git config core.ignorecase true

https://stackoverflow.com/a/23960663

  • 另一種方式

    git mv -f program.cs Program.cs 為強制重新命名檔案
    此做法比較沒有大多問題,建議用這個

參考網站

https://blog.gss.com.tw/index.php/2017/07/10/git-commit/


圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言