K
K
krll-k2014-08-04 18:40:25
linux
krll-k, 2014-08-04 18:40:25

What is the difference between rm -rf and git rm?

What is the difference between rm -rf and git rm?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
OnYourLips, 2014-08-04
@krll-k

rm -rf deletes a file on the media.
git rm removes the file on media and as tracked from git.
There is also git rm --cached which does not delete the file on the media.

A
Alexey Cheremisin, 2014-08-04
@leahch

rm -rf / just works, and under root - no questions asked, quickly and efficiently.
git rm doesn't work as it should because it doesn't remove what we expect, but files from the project.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question