svn: warning: '.' is not a working copy

2019-06-15 13:24发布

问题:

On a server, I used the svn import command to put files into SVN.

I checked the files out to my local machine, made some changes and then committed back.

Now I want to update the server copy of the files, but using svn update, it shows "skipped '.'" and svn status shows "svn: warning: '.' is not a working copy".

回答1:

Importing into svn doesn't make what you import a working copy. You have to check it out on the server just as you did locally. From then on it will be a working copy and you can use update.



回答2:

if you enter

 svn update

and it says that is not a working copy, try looking at your path, look for a level up or down where you are (in the console use:

pwd

that will tell you where you are) and finally just double check that you are actually in a directory of the project, remember empty folders (structure ones) are not meant to be recognized, they just "draw" structures so paths can be more readables, so its basically that, the containing folder is not having files under source control

Your SVN directory is the one that has a folder (hidden) named as '.svn' take a quick look and corroborate you are on the right path



回答3:

You have to do an SVN Update first to merge and make a the directory a working copy. Then Commit to commit your changes. You can also sometimes use the SVN Cleanup command to resolve similar kinds of issues.



回答4:

1) Type in the command 'svn update'

2) Choose the option 'theirs-conflict' which will be the command 'tc'

Now you have a new copy of the file, so you can edit and do whatever you need to this file!