简体   繁体   中英

change svn working copy to another directory

Q: So I have local svn setup on my mac. I want to change to working copy of a repository to another folder without 'svn checkout', so that I can commit some code that is not currently in the working copy.

Problem with 'svn checkout' The reason I don't want to use 'svn checkout' is b/c I don't want to overwrite the code into the new folder designated for working copy, because when I move the new code into the new designated folder and do an svn commit, I get an error based on the .svn hidden folders that svn attaches to your committed code.

What I am trying to accomplish? I got myself into this mess, b/c I am trying to add multiple versions of my code into different folders, so that I can compare them against one another.

Thanks, Jon

You can use "svn copy" to copy one or more files in a working copy or in the repository. More details: http://www.visualsvn.com/support/svnbook/ref/svn/c/copy/

I hope it helps.

When you do a svn checkout, it does not delete and overwrite existing files - it merges them (try it - make a backup copy of your target directory and then svn checkout into it).

However, the simplest way is to svn checkout into a clean directory, then copy your files on top of the checkout. Rename your current directory to something else if you need to keep the directory name for your checkout.

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