Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save huenisys/1efb64e57c37cfab7054c65702588fce to your computer and use it in GitHub Desktop.
Save huenisys/1efb64e57c37cfab7054c65702588fce to your computer and use it in GitHub Desktop.
Enable symbolic links for Git on Windows 10
@DmitriyYukhanov
Copy link

Thank you, Dev mode is what was missing in my case 👍

@markcornwell
Copy link

Don't understand what you mean by "set config to enabled". During installation of what? of Windows 10? I would note that Windows 10 Home Edition does not come with gpedit.msc enabled. I had to take some steps to install that separately. Is that what you mean by set config to enabled?

@paoloumali
Copy link

Hi @markcornwell
I'm not using Windows anymore but likely was referring to this:

git config --global core.symlinks true

@maphew
Copy link

maphew commented Jan 1, 2023

Re: "search > dev settings > dev mode".

I was confused for awhile because underneath the Developer Mode heading there's only a single slider and text saying "enable installing apps from any source", but nothing about file system permissions etc. I'd read elsewhere than machines in a corporate Active Directory domain might have some developer settings disabled. These two things led me to believe I was not seeing another slider(s) for more settings. That's not the case, just use "install from any source" that is turning on dev mode!

@maphew
Copy link

maphew commented Jan 1, 2023

Also see this stack overflow answer https://stackoverflow.com/a/52097145/14420 for how to recover symlinks in an existing checkout as well as ensuring symlinks is set in each repository.

@wer5lcy
Copy link

wer5lcy commented Jan 1, 2024

For existed repo directorys, addition from git config --global core.symlinks true as above,
I tried to set
git config --local core.symlinks true and git reset --hard HEAD to bring up the soft links.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment