''git status' yields different results in git bash (Windows 10) an WSL2 bash
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:
- Why does this happen?
- Is there a way to avoid this and achieve consistency across both OS (i.e. without cloning into a separate repo in WSL)?
Solution 1:[1]
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |


