forked from msysgit/git
-
Notifications
You must be signed in to change notification settings - Fork 1
Symlink How TO
frogonwheels edited this page Feb 9, 2013
·
2 revisions
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:
- A file-system that supports it (NTFS)
- 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.