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


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

I accept that my given data and my IP address is sent to a server in the USA only for the purpose of spam prevention through the Akismet program.More information on Akismet and GDPR.

Diese Website verwendet Akismet, um Spam zu reduzieren. Erfahre mehr darüber, wie deine Kommentardaten verarbeitet werden.