在查看文件编辑前我们先进行文件的打开并修改 在利用git status -s 就可以看到区别了 然后在利用git diff 就看到文件的区 别了 转载于:https://my.oschina.net/jiemoxiaodi/blog/848331