Remove a file from Git in Visual Studio -
i using git visual studio 2015 , have file want remove, can't figure out how!
the file webstorm settings file (workspace.xml), using working on javascript fiels. file included part of previous git push, missed chance @ marking ignored.
i happy remove parent folder: c:\wip\xxxx\xxxx\app\.idea.
i have lots of experience visual studio , tfs, first time have used git. i'm sure fix simple, eluding me!
if want retain workspace.xml remote repository while keeping locally untracked file, cannot done visual studio. best bet might command line. try this:
git rm path/to/workspace.xml git commit -m 'removed workspace.xml repo' git push origin yourbranch these commands remove workspace.xml being tracked git , push change repository.
if don't mind deleting file local setup, can delete workspace.xml, commit, push change repository. should doable within visual studio. if still want workspace.xml locally, can backup file , add after push remove.
