N
N
Nikita072021-03-22 10:53:35
git
Nikita07, 2021-03-22 10:53:35

What is the correct way to remove a folder from Git tracking?

Hello everyone, the question is the following, how to correctly remove a folder from being tracked?
I try the command git rm -r --cached obj, but I get an error (see below)

60584bf951bf9401178888.png

The general folder structure is presented below

60584c8c986eb124640260.png

It turns out that I need to delete the .vs, bin and obj folders, but when they are deleted, the same error occurs (see above)
I tried to delete them from pc, then execute the command, the result did not change

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lynn "Coffee Man", 2021-03-22
@Lynn

Judging by your screenshot, you are in the .vs folder and apparently there really is no obj folder inside this folder

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question