一份代码先是用window中的git拉下来
但在wsl中git status
却显示所有文件都被modified
Windows Subsystem for Linux
一份代码先是用window中的git拉下来
但在wsl中git status
却显示所有文件都被modified
Windows Subsystem for Linux
3 回答2.6k 阅读
1 回答1.2k 阅读✓ 已解决
2 回答1.1k 阅读✓ 已解决
2 回答1.4k 阅读
3 回答1.7k 阅读
2 回答1.1k 阅读
1 回答1k 阅读
https://github.com/Microsoft/...
This could have something to do with WSL reporting the permissions of all files on the Windows filesystem as being 777. Git then regards all files as changed because their permissions are different.
Try changing the Git configuration so that permission changes are ignored:
方法2
It may be line endings,WSL thinks it is linux so it will use LF as the line endings.
You can set git to only use CRLF line endings with: