I have a very strange situation where I received a private repo from a past developer. One of the folders in the repo starts with a hidden character, specifically the backspace char, or ‘b’. My attempt to remove the file from git causes the following error on MacOS:
fatal: pathspec ‘dir1/dir2/dir3/btarget/file.rb’ did not match any files
I changed the folder names to protect the innocent, but you get the idea.
Interesting, on Windows it won’t even let me checkout this repo as windows won’t allow for such a messed up file name. Any thoughts on how to get around this would be greatly appreciated. Btw, the repo is hosted on a private BitBucket repo. I took a quick look and I couldn’t find a way to make the change there so doing this on a Mac might be my only option. That or just creating a whole new repo and move forward from there.