I imported a repository using Github’s import, and it worked great, except for one thing.
There was a file in the repo with a special character - the registered sign (‘r’ inside a ciricle). I’m not sure if the specific character in use is unicode or from a particular Windows character set, but it’s showing up in Github for Windows as the replacement character (a question mark inside a black diamond). Trying to use Git on the command line, it shows as ‘\256’.
I renamed the file to remove the problem character, and pushed the commit.
When I clone the repo, and I’m now seeing:
warning: the following paths have collided (e.g. case-sensitive paths
on a case-insensitive filesystem) and only one from the same
colliding group is in the working tree:
‘Resources/DC/DC® SFTP Download Utility.pdf’
If I try to view this file on GitHub.com, I get HTTP ERROR 400.
I can’t remove it in Github for Windows - it keeps showing as Deleted, but when I commit it always sticks around afterwards still showing as deleted. I can’t add it to the .gitignore to ignore it, nor can I discard changes on it.
On the command line, here are things I’ve tried and the output (note, the filespec used in the second git rm attempt is the filename that’s displayed in Github for Windows):
> git status
On branch master
Your branch is up to date with ‘origin/master’.
Changes not staged for commit:
(use “git add/rm …” to update what will be committed)
(use “git restore …” to discard changes in working directory)
deleted: “Resources/DC/DC\256 SFTP Download Utility.pdf”
no changes added to commit (use “git add” and/or “git commit -a”)
>git rm “Resources/DC/DC\256 SFTP Download Utility.pdf”
fatal: pathspec ‘Resources/DC/DC\256 SFTP Download Utility.pdf’ did not match any files
>git rm “Resources\DC\DC� SFTP Download Utility.pdf”
fatal: pathspec ‘Resources\DC\DC� SFTP Download Utility.pdf’ did not match any files
>git rm “Resources/DC/DC® SFTP Download Utility.pdf”
fatal: pathspec ‘Resources/DC/DC® SFTP Download Utility.pdf’ did not match any files
>git restore “Resources/DC/DC\256 SFTP Download Utility.pdf”
error: pathspec ‘Resources/DC/DC\256 SFTP Download Utility.pdf’ did not match any file(s) known to git
Don’t know what to do with this. Big problem currently cause I’ve got files stashed that I can’t restore because changes are present on the branch.
I’d appreciate any help that might be offered; I’m stumped.