Git 踩坑记录:文件显示 modified,却无法 commit 问题背景 在 Windows + VS Code + Git 的前端项目中,遇到一个非常反直觉的问题: git status 明确显示文件被修改(modified) 但无论执行: git add <file> git commit git commit -a 都提示: no changes added to commit 文件始终无法进入暂存区 该问题没有任何报错,极具迷惑性。 常见误 git HankNovic 19天前 19 热度 0评论