简体   繁体   中英

SVN replace branch with another - NO merge

in my project I have configuration files separately in SVN. The needs to stay on the server, so I have an SVN checkout job that run before any deploy. If I want to deploy on my server a previous version how can I overwrite all the configuration files without having merge problem? (eg version 2.3 is currently on server, I need to deploy version 2.2 with a patch, and consequently update all the configuration files at version 2.2)

Basicly I want to replace an entire branch with another, avoiding any conflict. I can use rm -rf (unix server), but is a bit risky.

You can use SVN switch using this command - svn switch branch-2.3 branch-2.2 For this you need to have these per-equites -

  1. Branch should be cleaned up, no .svn temp files should come in picture
  2. Any of the local changes may go away.! So make sure that, you have everything committed.

So you can handle these things easily using commands and perform the job.! Hope this help.

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