I wanted to add a certain set of files in a directory using svn into repository. I did following to achieve this:
svn add graph_data/
This added whole directory whereas i needed only certain files. To remove this,
I did ‘svn remove graph_data/’ which showed following error:
svn: Use –force to override this restriction
svn: ‘graph_data’ has local modifications
I then used, ‘svn remove –force graph_data/’ which removed the folder from my local filesystem itself, shouldnt this be removing the folder from svn only, Also how do i get back the folder ?
P.S. ‘svn revert’ doesnt seem to work here as these files were only on my local filesystem.
This command will indeed delete the files from your working copy and mark them for removal from the repository on the next commit.
That’s why it warned you that you have local modifications that would be lost, and asked you to add –force to the command line to be sure that you really really meant it…