Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
+1 vote
4 views
in DevOps and Agile by (29.3k points)

On SVN, removing something from the filesystem directly (rather than using svn) created a load of headaches. So far, using git, I haven't found this to be an issue, but I notice that git has it's own rm implementation.

Is there a difference? Am I doing something wrong?

1 Answer

+1 vote
by (50.2k points)

If you use rm then you need to follow

git add <fileRemoved>

But if you use git rm this command will remove a file and also you could use:

git rm --cached

This command will delete the file from the index.

Browse Categories

...