Windows 版
for /f "tokens=*" %i in ('git ls-files') do @(
for /f %j in ('git log --oneline "%i" ^| find /c /v ""') do @echo "%j", "%i"
) >> git-ls-files-log-count-commits.txtWindows 版
for /f "tokens=*" %i in ('git ls-files') do @(
for /f %j in ('git log --oneline "%i" ^| find /c /v ""') do @echo "%j", "%i"
) >> git-ls-files-log-count-commits.txt因為使用中文
會有一些亂碼問題
例如
git status/log
中文路徑顯示成 utf-8 編碼編號 (或者稱為亂碼)
可以參考 GIT - 中文亂碼的問題
使用
git config --global core.quotepath false
因為使用中文
會有一些亂碼問題
例如
cmd 無法顯示中文
可以參考 在命令提示視窗(Command Prompt)顯示UTF-8內容
使用