DevOps / 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
More Related questions...