简体   繁体   中英

Check out code from svn without creating folder

I have code on svn, like the following hierarchy:

myFolder    
|--myFolder1    
|--myFolder2
|--myFolder3

When I check out code using command svn co http://my.repository.path/myFoder , It creates myFolder and checks out data inside the folder but I need to check out data of myFolder without creating myFolder .

You have to use the full version of the svn command here

> svn co --help
checkout (co): Check out a working copy from a repository.
usage: checkout URL[@REV]... [PATH]

So when you use instead svn co http://my.repository.path/myFolder . (see the point at the end for the current directory), it should checkout the content of the directory directly into the folder itself.

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