How do I remove a git file with word spacing?

-2

Well, I was able to remove a file with no space xd.txt but when I created my first file Novo Documento de Texto.txt it came with space and so the command is not working What can I do?

    
asked by anonymous 20.05.2018 / 21:13

2 answers

0

I just found the solution if someone is in the same doubt, where you have space vcs should put a \ similar to linux

ex: Novo\ Documento\ de\ Texto.txt

    
20.05.2018 / 21:25
2

You probably have to enclose it in quotation marks like this: "Novo Documento de Texto.txt"

Assuming you are talking about rm , it should look like this:

git rm "Novo Documento de Texto.txt"
git commit -m "arquivo removido"
    
20.05.2018 / 21:24