Windows is able to handle case-sensitive files by using this command on folders:
fsutil.exe file setCaseSensitiveInfo "C:\examplefolderpath" enable
However, the issue with this is that it doesn't automatically apply to subfolders... There is a way to apply it to subfolders using PowerShell, but they have to actually exist first. Thus, I'm looking for a way to retrieve a git repo's folder structure without actually downloading any of its files. Only after the folder structureis created and I've run the PowerShell command do I want to checkout the files.
Is there a convenient way to do this using git commands alone?
If not, is there a way for PowerShell to retrieve the folder structure from a bare git repository (using git clone --bare
) and setup the folder structure? (For a side-project I'm working on, it would also be useful to know how to do this using Go, unless git commands alone can do it. But, this isn't as important as knowing how to do it with PowerShell.)