I work on Windows 10 with WSL2. I initialized a git repo in git bash (Windows) and everything works fine (commit, push etc.).
git status # on Windows, git bash

When I switch to WSL2 and have a look at the same status of the same repo (drive mounted in WSL), I find that all files are untracked (WSL2 bash).
git status # same repo in WSL2 bash

My Questions:
you might find some answers here
TLDR : git config --global core.autocrlf true
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With