Git problem in wsl

A code is first pulled down with git in window
, but in wsl git status shows that all files are modified

Windows Subsystem for Linux
Mar.23,2021

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:

-sharp For the current repository
git config core.filemode false   

-sharp Globally
git config --global core.filemode false

method 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
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b39d60-2c1c0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b39d60-2c1c0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?