DEV Community

Discussion on: How to make WSL2 even faster, with fast git

Collapse
 
kmc79 profile image
kmc79

Why not run git from wsl?

Collapse
 
themartes_ profile image
Matej Bunček 🤔

You're using git in WSL, the problem is with mounted windows. When windows is under /mnt git is extremely slow, and for me personally and projects what I'm developing in work it's really a bummer. This repository is more than 10 years old, and simple git status is taking about 5 seconds. With this "hack" the git is running really smooth. Basically git something which is running on top of your filesystem, so it makes sense that it could be slower on mounted filesystems.