Skip to content
frogonwheels edited this page Feb 9, 2013 · 2 revisions

Using Symlinks in a symlink-enabled MsysGit

Without any options, MsysGit supports reading of symlinks outside of repository content. This includes ideas like being able to commit through a symlink into a repository subdirectory.

Then, in order for git to be able to create symbolic links you need:

  1. A file-system that supports it (NTFS)
  2. The security permissions to be able to do this.

To gain such permissions you will need the Privilege SeCreateSymbolicLinkPrivilege. This can be granted by executing, with Administrator privileges, the command:

editrights -a SeCreateSymbolicLinkPrivilege -a %YOUR_USER%

Then, to allow git to create the symbolic links, you will need

git config core.symlinks true

To this, you can add --system or --global if you wish to enable it more generally than a single repository.

Clone this wiki locally