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

依然范特西╮ 提交于 2019-12-08 15:27:06

问题


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!



来源:https://stackoverflow.com/questions/5869173/svn-warning-is-not-a-working-copy

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!