0 votes
31 views
in Technology by (230k points)

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

1 Answer

0 votes
by (230k points)

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.

Related questions

0 votes
1 answer 19 views
0 votes
1 answer 20 views
0 votes
1 answer 25 views
0 votes
1 answer 19 views
asked Nov 2, 2020 in Technology by JackTerrance (230k points)
0 votes
1 answer 177 views
0 votes
1 answer 18 views
0 votes
1 answer 37 views
0 votes
1 answer 18 views
asked Nov 3, 2020 in Technology by JackTerrance (230k points)
0 votes
1 answer 36 views
asked Nov 4, 2020 in General by JackTerrance (230k points)
0 votes
1 answer 21 views
...