zaterdag 5 januari 2019

Disable case sensitivity for WSL (Windows Subsystem for Linux)

I ren in to an issue opening a Unity3D project while setting up my windows machine for game development.

The project is on case sensitive file system.Case sensitive files systems are not supported at the moment.Please move the project folder to a case insensitive file system.

This Unity project was cloned with git cli on WSL, this might have caused some issues with files that have case sensitive names since Ubuntu is case sensitive by default and Windows 10 is not.

This behavior can be altered by editing the /etc/wsl.conf file to include:

[automount]
    options = "case=off"

Make sure to un-mount and remount or restart the pc for the changes to take effect.

Store git credentials in WSL (Windows Subsystem for Linux)

This is a short guide for using wincred from Git for Windows in WSL (Windows Subsystem for Linux). All you have to do is add a view lines to you global .gitconfig


  1. Make sure you have installed Git for Windows
  2. Add the following to you ~/.gitconfig file 
    [credential]
        helper = /mnt/c/Program\\ Files/Git/mingw64/libexec/git-core/git-credential-wincred.exe
    
Thats it, wincred will safely store you credentials in the Windows Credential Manager te next time git prompt you for authentication. From that point on wincred will take care of authentication.