Reputation: 5013
I've added a new file (pdf) to a directory and when I try and commit the new file it is saying that it is not under version control, the directory and every other file in the directory is under version control as when I tried svn add *
it listed all the files as being under version control.
What is causing this problem and how do I fix it?
EDIT: OK I am now able to add the file, am I right in saying that the svn add *
command added this file under version control thus allowing me to commit the file?
Upvotes: 11
Views: 53719
Reputation: 401
Yes, the svn add *
did that.
You have to svn add Name_of_File
any new files before you can svn commit them.
Upvotes: 20
Reputation: 1578
In some cases the add
command doesn't do it, and still gives an error. the best thing is to perform the svn cleanup [PATH...]
command then try to add or commit.
Upvotes: 2
Reputation: 1780
you can try something like this...
in the checkout directory run this command
svn add . --force
then just commit it all
svn commit -m "your text" *
Upvotes: 6