0
How will you remove a file from Git without actually removing it from your local filesystem?

Open 1 Answers 51 Views Technology

How will you remove a file from Git without actually removing it from your local filesystem?

1 Answer

0

You can use the ‘cached’ option for this:

git rm -rf –cached $FILES

This command will remove the files from your repository without deleting them from your disk.

by (280k points)
...