I have checked out files from my svn repository to a local project folder.
then I add 1 file in the project folder. But when I run:
svn commit -m "added a file"
it doesn’t commit anything! Only when I change the original files, not adding new ones. How come? I want it to add new files to the repository.
SVN doesn’t know that you’ve added a file unless you tell it with the
svn addcommand. Rather it doesn’t know that you want a new file added to the repository until you do that.I think that they chose this method of working because there are often a lot of files in a workspace that aren’t intended to be in the repository. This makes users be explicit about what should go in.
svn statuswill let you know about new files that haven’t been marked for adding to the repository.