www.question-defense.com | Engage: Visit :: Login :: Register
Translate to English Übersetzen Sie zum Deutsch/German Переведите к русскому/Russian Μεταφράστε στα ελληνικά/Greek Vertaal aan het Nederlands/Dutch ترجمة الى العربية/Arabic 中文翻译/Chinese Traditional 中文翻译/Chinese Simplified 한국어에게 번역하십시오/Korean 日本語に翻訳しなさい /Japanese Traduza ao Português/Portuguese Traduca ad Italiano/Italian Traduisez au Français/French Traduzca al Español/Spanish
0

The git-svn tool is a simple conduit for changesets between Subversion and Git. It provides a bidirectional flow of changes between a Subversion and a Git repository.

The latest msysgit distribution of Git for Windows (version 1.6.1 preview 20081227 at the time of this writing), does not come bundled with the the git-svn tool. This can be installed on Windows using the Cygwin distribution of Git, however.

Download and run the Cygwin setup program, and install the Devel -> git and Libs -> subversion-perl packages.

You can add the Cygwin bin folder (e.g. C:\Cygwin\bin) to your path to make running Git easier.

Try running “git svn” at a command prompt to see if things are installed properly. You should get a “fatal: Not a git repository (or any of the parent directories): .git” message. If you get a message like “*** fatal error – unable to remap C:\cygwin\lib\perl5\site_perl\5.8\cygwin\auto\SVN\_Core\_ Core.dll to same address as parent(0×260000)”, then try applying this fix.

Try creating a Git repository from your Subversion one e.g. “git svn init https://server.address/svn/projectname” then “git svn fetch”. See here or here for example to get started.

I kept getting an error like “Can’t write to .git/svn/.metadata” when I ran “git svn fetch” and the revisions were being fetched, but I would just run this command again and it would successfully continue fetching the next revision.

Also, if you want to work with GitHub using SSH, then you need to take some extra steps to do this. See this page and the links inside for guidance.

DeliciousStumbleUponDiggTwitterMixxTechnoratiFacebookNews VineLinkedInYahoo! Bookmarks
Related posts:
  1. file /usr/share/emacs/site-lisp/psvn.el from install of subversion-1.5.5-0.1.el5.rf conflicts with file When upgrading Subversion on CentOS you may run into a...
  2. Changing a Revision Property in Subversion I’m using Subversion and needed to change a revision property...
  3. How to Move a Subversion Repository from One Remote Server to Another I was recently asked to move our subversion repository from...
  4. ruby.exe: No such file or directory — /cygdrive/c/ruby/bin/gem (LoadError) When attempting to install a gem using cygwin on a...
  5. How To Install SCP and SSH On Windows 7 Using Cygwin I use Cygwin on Windows to make my Windows only...

Tags:
One Response to “Install git-svn on Windows”
  1. Wm Tanksley says:

    Google thinks that the “this page” you’re linking to at leondu.com has a trojan.

    -Wm

    [Reply]

  2.  
Leave a Reply