Git-Bash

From Omnia
Revision as of 03:48, 18 November 2025 by Kenneth (talk | contribs) (Created page with "== Symbolic Links == Requires Elevated Privileges: (or UAC turned off) <ref>https://stackoverflow.com/questions/18641864/git-bash-shell-fails-to-create-symbolic-links</ref> export MSYS=winsymlinks:nativestrict ln -s <target_path> <link_name> Requires Elevated Privileges: cmd /c "mklink /D <link_name> <target_directory>" # For directory symlinks cmd /c "mklink <link_name> <target_file>" # For file symlinks Turn on in Git: git config --global core.symlinks true...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Symbolic Links

Requires Elevated Privileges: (or UAC turned off) [1]

export MSYS=winsymlinks:nativestrict
ln -s <target_path> <link_name>

Requires Elevated Privileges:

 cmd /c "mklink /D <link_name> <target_directory>" # For directory symlinks
 cmd /c "mklink <link_name> <target_file>" # For file symlinks

Turn on in Git:

git config --global core.symlinks true
# local only
git config core.symlinks true

---

CqSI8kO.png

ref: https://github.com/orgs/community/discussions/23591