Git change capitalization of filename - Git 更改檔案名大小字

今日遇到一個git 的問題
就是需要更之前 commit 了既一個 filename 的大細階..
e.g.

2020-03-01-Google-sheet-with-google-translate.md

2020-03-01-google-sheet-with-google-translate.md

即使在 VS code 上更新了檔案的大小字….
但是還是 detect 不到 changes…

最後終於找到解決方法 我們可以使用以下的 git command git mv

mv         Move or rename a file, a directory, or a symlink

e.g.

git mv 2020-03-01-Google-sheet-with-google-translate.md 2020-03-01-google-sheet-with-google-translate.md

Hope you find it useful

Chi Yau
Chi Yau
Software Engineer

Interested on Learning new stuff and experience sharing