重新定位工作副本
If your repository has for some reason changed it's location (IP/URL). Maybe you're even stuck and can't commit and you don't want to checkout your working copy again from the new location and to move all your changed data back into the new working copy, TortoiseSVN → Relocate is the command you are looking for. It basically does very little: it scans all entries
files in the .svn
folder and changes the URL of the entries to the new value.
警告
這是一個極少使用的操作.重定位隻能 在版本庫路徑更改時使用。可能的原因是:
-
服務器的IP地址已更改。
-
協議已更改(比如從https://改為 https://)。
-
版本庫在服務器的路徑已更改。
換種說法,如果你要重定位,隻有當你的工作副本仍然還在同一個版本庫中定位,但版本庫本身已經沒有了。
以下情況不支持:
-
你要移到一個完全不同的版本庫。這種情況下,你必須從新的版本庫裏執行一次幹淨的檢出。
-
你要在同一個版本庫中切換一個分支或目錄。這麼做你可以用TortoiseSVN → 切換....
如果你使用以上任意一種重定位方式,它將破壞你的工作副本,在你更新、提交等操作時會提示一些令人費解的錯誤信息。一旦發生這種情況,唯一的辦法就是檢出最新版本。
最後更新:2017-07-17 16:42:33