简体   繁体   中英

SVN - Checked out copy cannot be committed: 'not a working copy'

I've just set up VisualSVN Server and slik SVN clients.

I imported a project from my desktop computer into the repository. Then, on my laptop I checked out a copy and made some changes. When I tried to commit, it failed saying it was not a working copy.

I thought maybe I had somehow messed up the svn files, not sure how I would have though. Anyway, I checked out another copy and then immediately tried to commit it, but again, it said not a working copy.

I must be missing something here.

edit

I used svn import to import the project and svn checkout to checkout the project

Depending on how you check out, it might have created an extra sub-folder, eg, MyProject\\MyProject . In this case, the working folder would actually be the lower directory. If you try to commit from the higher directory, it will say it is not a working copy (because it isn't, you need to go one level down).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM