{"id":1749,"date":"2022-04-04T07:53:12","date_gmt":"2022-04-04T07:53:12","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/?p=1749"},"modified":"2022-12-23T06:19:51","modified_gmt":"2022-12-23T06:19:51","slug":"what-is-svn","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/what-is-svn\/","title":{"rendered":"what is .svn hidden folder?"},"content":{"rendered":"\n<p>The Subversion documentation says this about workingCopy directories:<\/p>\n\n\n\n<p>A Subversion working copy is an ordinary directory tree on your local system, containing a collection of files. You can edit these files however you wish, and if they\u2019re source code files, you can compile your program from them in the usual way. \u2026<\/p>\n\n\n\n<p>A working copy also contains some extra files, created and maintained by Subversion, to help it carry out these commands. In particular, each directory in your working copy contains a subdirectory named .svn, also known as the working copy\u2019s administrative directory. The files in each administrative directory help Subversion recognize which files contain unpublished changes, and which files are out of date with respect to others\u2019 work.<\/p>\n\n\n\n<p>Here\u2019s another clue: a passage from Pragmatic Version Control Using Subversion:<\/p>\n\n\n\n<p>Subversion has a highly efficient network protocol and stores pristine copies of your working files locally, allowing a user to see what changes they\u2019ve made without even contacting the server [where the central repository is stored].<\/p>\n\n\n\n<p>So now we know what a Subversion administrative directory contains.<\/p>\n\n\n\n<p>The .svn admin directory contains pristine (unchanged) copies of files that were downloaded from the repository. (It contains a few other things, too.)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Can I delete .SVN folder?<\/h3>\n\n\n\n<p>When you are using the Windows OS, go to your folder location and check hidden files are open, and then you can see the SVN folder in there. Just remove that folder.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Where is the .SVN folder?<\/h3>\n\n\n\n<p>the only . svn folder is in the root folder now, and this contains all of the info for the checkout. You should now be able to simply copy the folder and check it in.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">How do I delete a .SVN file in Windows?<\/h3>\n\n\n\n<p>Right click on the project, go to Team-&gt;disconnect. It will open a popup where you select the first option: &#8216;Also delete the SVN meta-information from file system. &#8216; This will remove all the SVN folders automatically along with svn property files that you might forget sometimes while removing .<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">How do I delete a .svn folder recursively?<\/h3>\n\n\n\n<p>The find command returns a list of all the subfolders matching \u201c. svn\u201d, and this is then piped to the rm command to recursively delete the directory. Running rm using the full path will remove the confirmation prompt, and the \u201crf\u201d arguments will recursively delete any folder contents.<\/p>\n\n\n\n<p>Help! I\u2019ve lost my .svn directory and I can\u2019t get up!<\/p>\n\n\n\n<p>Because a Subversion workingCopy directory needs a .svn subdirectory in order to work properly, you can have problems with Subversion if you accidentally delete the .svn subdirectory.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Subversion documentation says this about workingCopy directories: A Subversion working copy is an ordinary directory tree on your local system, containing a collection of files. You can edit these&#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-1749","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\/1749","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=1749"}],"version-history":[{"count":2,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/1749\/revisions"}],"predecessor-version":[{"id":29462,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/1749\/revisions\/29462"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=1749"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=1749"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=1749"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}