I’ve created a project, and used svn import. Now I’d like to commit a change to files, how to do that?
I have empty ~/.workspace/project/.svn/entries.
If I try svn commit I get this:
$ svn commit src/dat/Win.java
svn: '/home/st/.workspace/dat/src/dat' is not a working copy
svn: Can't open file '/home/st/.workspace/dat/src/dat/.svn/entries': No such file or
directory
… or just svn commit:
$ svn commit
svn: Can't read file '/home/st/.workspace/dat/.svn/entries': End of file found
Before committing, you need to checkout a fresh copy of the just imported files. Delete (or rename) you’re project directory, and do
svn checkout [REPOSPATH].Then you have a working copy. After you change a file in you’re working copy, you can use
svn commit.See Getting Data into your Repository in the SVN Book.