Quick Hint: How to remove a file from subversion version control after accidently adding it?

Hi!

I guess you all had this situation when using subversion / svn: You just created a new project and added many many files…. just to see that there is this ONE file which should no be included into subversion versioning control.

If you use an IDE this might not be a simple task and even on the console I used to use svn add * and regretting it afterwards…. Like if you have accidently added the IDE project file for example.

So here is a quick fix I found if you want to remove a file which has been under version control from svn and KEEP A LOCAL COPY:


user@machine:~$ svn rm --keep-local exporter.iml
D exporter.iml

I hope this hint was useful for you:
[poll id=“7″]

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.