Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
cursee165956y👀 new stuff. I'm interested.
Did you give some unconventional name to folder and file? Non-unicode text and stuff ? -
@cursee The answer is someone made a file named "\" yes a literal backslash with some code. I backed it up by "mv \ /some/folder" lol now it is gone! LOL! 🤣
-
I did this in bash: (Does not work on Cygwin, as it translates "\" to "/". 🙄)
$ touch \\
I then had a file called '\' and "git status" showed it as "\\". Interestingly I was not able to remove it using git. I guess it gets confused by the backslashes. Then I removed it manually using:
$ rm '\'
(Although "rm \\" should have worked, too.)
How that file got on your machine is a mystery, though...
Related Rants
Hi guys what is the meaning of double back slash in my Git folder? It is not removed when I do a "git clean -fd". This is the first time I encountered something like this.
$ git status
On branch master
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: some/folder/hello.php
Untracked files:
(use "git add <file>..." to include in what will be committed)
"\\"
no changes added to commit (use "git add" and/or "git commit -a")
question
git
how to remove
double backslash