If this came up in a Google search, welcome Windows Developers.
After decades of experience across multiple different stacks, I finally ran into a puzzling problem. I couldn't check out a repo some of the files had colons in the file name. That's a first for me.
Apparently, a colon in the file name is not allowed on Windows machines, but is okay on various forms of Linux, which includes Macs.
Since renaming the file was not an option, I ended up going into my WSL. First install it if you haven't already:
Then I used:
To go to the main branch. After that I was able to load the repo into SourceTree / GitHub desktop.
The files show up in my (windows) IntelliJ, but with a weird character where the colon should be. I'm not sure what will happen if I try to save those files / recommit then yet.
Definitely something that was not on my bingo card for this year. I wish there was a more native way to do this.
