Skip to content

Instantly share code, notes, and snippets.

@Zorono
Created May 5, 2020 22:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Zorono/53292e67123c9a7d6db3e770c17334b0 to your computer and use it in GitHub Desktop.
Save Zorono/53292e67123c9a7d6db3e770c17334b0 to your computer and use it in GitHub Desktop.
simple fix for Git Checkout `invalid path` error on Windows
set "repo=https://github.com/Zorono/TestRepo.git"
git clone %repo%
git config core.protectNTFS false
git config hooks.enforcecompatiblefilenames false
git restore --source=HEAD :/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment