Skip to content

Instantly share code, notes, and snippets.

@selfagency
Created August 10, 2023 20:53
Show Gist options
  • Save selfagency/aeca6eb419d8791a39524aa57c670670 to your computer and use it in GitHub Desktop.
Save selfagency/aeca6eb419d8791a39524aa57c670670 to your computer and use it in GitHub Desktop.
[wsl -> windows git]
# This can be due to security features built into newer Git versions, which prevent WSL paths from being accessed by Git.
#There is a workaround, though: disabling the check for a specific directory or all:
git config --global --add safe.directory '%(prefix)///wsl.localhost/
git config --global --add safe.directory '*'
# After applying this you should be able to add the repo to Tower.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment