如下指令: git rm -r --cached [具體檔案名,可包含檔案夾路徑] 示例:git rm -r --cached folderName/fileName git commit -m "remark" git push