{"id":1777,"date":"2022-04-04T07:18:51","date_gmt":"2022-04-04T07:18:51","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/?p=1777"},"modified":"2022-12-23T06:19:53","modified_gmt":"2022-12-23T06:19:53","slug":"moving-svn-folders","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/moving-svn-folders\/","title":{"rendered":"svn move (mv) \u2014 Move\/Rename a file or directory"},"content":{"rendered":"\n<p>svn move (mv) \u2014 Move\/Rename a file or directory<\/p>\n\n\n\n<p>This command moves files or directories in your working copy or in the repository.<\/p>\n\n\n\n<p><strong>Note<\/strong><br>Subversion does not support moving between working copies and URLs. In addition, you can only move files within a single repository\u2014Subversion does not support cross-repository moving. Subversion supports the following types of moves within a single repository:<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">SVN move using Tortoise SVN<\/h2>\n\n\n\n<p>To move a file or set of files using Tortoise SVN, right-click-and-drag the target files to their destination and release the right mouse button. The popup menu will have a SVN move versioned files here option.<\/p>\n\n\n\n<p>Note that the destination folder must have already been added to the repository for the SVN move versioned files here option to appear.<\/p>\n\n\n\n<p>If you want to do a simple in-place rename of a file or folder, use Context Menu \u2192 Rename\u2026 Enter the new name for the item and you&#8217;re done.<\/p>\n\n\n\n<p>If you want to move files around inside your working copy, perhaps to a different sub-folder, use the right mouse drag-and-drop handler:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>select the files or directories you want to move<\/li><li>right drag them to the new location inside the working copy<\/li><li>release the right mouse button<\/li><li>in the popup menu select Context Menu \u2192 SVN Move versioned files here<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">svn move command examples<\/h2>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-1\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript\">Move a file <span class=\"hljs-keyword\">in<\/span> your working copy:\n\n$ svn move foo.c bar.c\nA         bar.c\nD         foo.c\nMove several files <span class=\"hljs-keyword\">in<\/span> your working copy into a subdirectory:\n\n$ svn move baz.c bat.c qux.c src\nA         src\/baz.c\nD         baz.c\nA         src\/bat.c\nD         bat.c\nA         src\/qux.c\nD         qux.c\nMove a file <span class=\"hljs-keyword\">in<\/span> the repository (<span class=\"hljs-keyword\">this<\/span> is an immediate commit, so it requires a commit message):\n\n$ svn move -m <span class=\"hljs-string\">\"Move a file\"<\/span> http:<span class=\"hljs-comment\">\/\/svn.red-bean.com\/repos\/foo.c \\<\/span>\n                            http:<span class=\"hljs-comment\">\/\/svn.red-bean.com\/repos\/bar.c<\/span>\n\nCommitted revision <span class=\"hljs-number\">27.<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-1\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>svn move (mv) \u2014 Move\/Rename a file or directory This command moves files or directories in your working copy or in the repository. NoteSubversion does not support&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[2],"tags":[395],"class_list":["post-1777","post","type-post","status-publish","format-standard","hentry","category-uncategorised","tag-svn"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/1777","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=1777"}],"version-history":[{"count":2,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/1777\/revisions"}],"predecessor-version":[{"id":29448,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/1777\/revisions\/29448"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=1777"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=1777"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=1777"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}