How do I remove a git file with word spacing?

Asked

Viewed 84 times

-2

Well, I managed to remove a file without spacing 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?

2 answers

2

You probably have to put it in quotes, like this: "Novo Documento de Texto.txt"

Assuming you’re talking about rm, should look like this:

git rm "Novo Documento de Texto.txt"
git commit -m "arquivo removido"

0


I just found the solution in case someone is having the same doubts, where there is space you must place a \ similar to linux

ex: Novo\ Documento\ de\ Texto.txt

  • talks about the git rm command? The question is not clear enough and the answer also left me in doubt.

  • Yes kk I installed now, to lost, I think so my question was not clear but thank you very much for the help

  • 1

    Your question was not clear because you did not inform the command you used, whenever you ask a question show what you did, it helps to understand where the problem is. ;) Good luck to you

Browser other questions tagged

You are not signed in. Login or sign up in order to post.