Help the world stop coronavirus! Stay home!

Prev Next

Maven / GIT Interview Questions

How do I remove a file from a Git repository without deleting it from the local filesystem?

To delete a file, use the below command.

git rm --cached app.config.file

to delete a directory, use the below command.

git rm --cached -r directoryToRemove

❤Cash Back At Stores you Love !!!❤

Earn your $10 reward when you make your first purchase through Ebates by signing up with clicking below button.

Ebates Coupons and Cash Back

More Related questions...

Show more question and Answers...


Comments & Discussions