git filter-branch -- index-filter 'git rm --cached --ignore-unmatch filename' HEAD.
1 Answer
Just calling git rm --cached on each of the files you want to remove from revision control should be fine. As long as your local ignore patterns ...
There are 3 options to resolve I think for the question 3 options are required. Option1: To keep the local file for you, but delete for everyone once ...
git rm --cached projectFile. Will delete the file in the index, so it will no longer be tracked, but won't physically delete it.
Git “remove” FAQ: How do I tell Git not to track a file (or files) any more?
Use gitignore, git update-index, and repo management to ignore and exclude files from
Git LFS automatically creates or updates .gitattributes files to bind tracked file ...
Reference: http://stackoverflow.com/questions/936249/stop-tracking-and-ignore- changes-to-a-file-in-git. $ git rm --cached -r
Add all the files, individually or in a folder, that you want to remove from the repo but keep locally to .gitignore. · Execute git rm --cached put/here/ ...