{"id":72,"date":"2007-07-23T18:34:25","date_gmt":"2007-07-23T17:34:25","guid":{"rendered":"https:\/\/www.dont-panic.cc\/capi\/2007\/07\/23\/git-svn-on-windows-cygwin\/"},"modified":"2008-10-22T18:46:57","modified_gmt":"2008-10-22T17:46:57","slug":"git-svn-on-windows-cygwin","status":"publish","type":"post","link":"https:\/\/www.dont-panic.cc\/capi\/2007\/07\/23\/git-svn-on-windows-cygwin\/","title":{"rendered":"git-svn on Windows (cygwin)"},"content":{"rendered":"<div style=\"border-style: dashed; border-width: 1px; margin-top: 14px;padding: 4px; background: #f0f0f0;\"><strong>Update 2008-10-10:<\/strong> Often perl will not work due to memory-remapping problems. A solution can be found in <a href=\"https:\/\/www.dont-panic.cc\/capi\/2007\/10\/29\/git-svn-fails-with-fatal-error-unable-to-remap\/\">my article about the issue<\/a>.<\/div>\n<p>What I really love about <a href=\"http:\/\/git.or.cz\/\">Git<\/a> is the fact that it nicely integrates with existing <a href=\"http:\/\/subversion.tigris.org\/\">Subversion<\/a> repositories. At our company, we are using Subversion as our <a href=\"http:\/\/en.wikipedia.org\/wiki\/Revision_control\">SCM<\/a>, but I personally like Git more and I want to use it as a side tool for more flexible branching, merging, and for checking in versions I wouldn&#8217;t check in the shared repository.<\/p>\n<p>Git is supplied with <a href=\"http:\/\/www.kernel.org\/pub\/software\/scm\/git\/docs\/git-svn.html\">git-svn<\/a>, which can import an existing SVN repository and also commit back to it. Under cygwin, you need to perform two additional steps for getting git-svn to work, otherwise it is likely to fail with &#8220;failed to include Error.pm&#8221;.<\/p>\n<ul>\n<li>subversion-perl (install via <a href=\"http:\/\/www.cygwin.com\/\">cygwin<\/a>&#8216;s <a href=\"http:\/\/www.cygwin.com\/setup.exe\">setup.exe<\/a>)<\/li>\n<li>Error.pm<\/li>\n<\/ul>\n<p>You need to <a href=\"http:\/\/search.cpan.org\/src\/UARUN\/Error-0.15\/Error.pm\">download Error.pm from CPAN<\/a>. You have to save it to &lt;cygwin-dir&gt;\\lib\\perl5\\Error.pm<\/p>\n<p>Voila! git-svn should work now.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Update 2008-10-10: Often perl will not work due to memory-remapping problems. A solution can be found in my article about the issue. What I really love about Git is the fact that it nicely integrates with existing Subversion repositories. At our company, we are using Subversion as our SCM, but I personally like Git more &hellip; <a href=\"https:\/\/www.dont-panic.cc\/capi\/2007\/07\/23\/git-svn-on-windows-cygwin\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;git-svn on Windows (cygwin)&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,5],"tags":[131,102,56,14],"class_list":["post-72","post","type-post","status-publish","format-standard","hentry","category-development","category-software","tag-git","tag-subversion","tag-troubleshooting","tag-windows"],"_links":{"self":[{"href":"https:\/\/www.dont-panic.cc\/capi\/wp-json\/wp\/v2\/posts\/72","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dont-panic.cc\/capi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dont-panic.cc\/capi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dont-panic.cc\/capi\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dont-panic.cc\/capi\/wp-json\/wp\/v2\/comments?post=72"}],"version-history":[{"count":3,"href":"https:\/\/www.dont-panic.cc\/capi\/wp-json\/wp\/v2\/posts\/72\/revisions"}],"predecessor-version":[{"id":154,"href":"https:\/\/www.dont-panic.cc\/capi\/wp-json\/wp\/v2\/posts\/72\/revisions\/154"}],"wp:attachment":[{"href":"https:\/\/www.dont-panic.cc\/capi\/wp-json\/wp\/v2\/media?parent=72"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dont-panic.cc\/capi\/wp-json\/wp\/v2\/categories?post=72"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dont-panic.cc\/capi\/wp-json\/wp\/v2\/tags?post=72"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}