在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問答/Linux  Office/ wsl中g(shù)it 問題

wsl中g(shù)it 問題

一份代碼先是用window中的git拉下來
但在wsl中git status卻顯示所有文件都被modified

Windows Subsystem for Linux
回答
編輯回答
吢涼

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:

# For the current repository
git config core.filemode false   

# Globally
git config --global core.filemode false

方法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:

git config --global core.autocrlf true
2017年10月27日 16:56