I'm trying to add a_folder to SVN but I accidentally scheduled my root directory for deletion:
[phil@sessions www]$svn status
R .
A a_folder
I can't commit a_folder's adding because...
[phil@sessions www]$ svn commit a_folder-m "adding"
svn: Commit failed (details follow):
svn: '/home/phil/www' is not under version control and is not part of the commit, yet its child '/home/phil/www/a_folder' is part of the commit
If I try "svn add ." I get "www is already under version control". How can I remove this status so that I can go on with my life?
If you are using TortoiseSVN, just do a Check for Modifications, sort by the Status column, select all the entries marked missing , right-click to open the context menu, and select Delete. Finally, commit to publish the changes to the repository.
Reverts any local changes to a file or directory and resolves any conflicted states. svn revert will not only revert the contents of an item in your working copy, but also any property changes.
svn revert .
My problem was in a single folder, so I resolve in this way:
cd Project
svn revert Folder
cd Folder
svn add --force .
cd .. && svn commit -m "resolved svn inconsistency"
Here a usefull link with the list of all status.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With