Git and SVN on Windows

ぐ巨炮叔叔 提交于 2019-11-30 08:39:54

git-svn does not work well on windows in my experience. What I would advise is to put your git import on something like github or any other git hosting, and use "pure" git on windows. This assumes you have a unix (or at worse cygwin, which should work better than msysgit I guess) to do the git-svn updates. That's not ideal, obviously.

I'm not really sure why, but it takes a pretty long time to come back from the prompt above that asks whether or not to accept the certificate. After waiting about 15 minutes, the operation did complete.

I got this working by adding the certificates to the auth-chain. You have to get the issuer-certificate (CA) of your server-certificate in .pem-format and copy it to the certs-directory (PATH_TO_GIT\ssl\certs) with a hashed name. Generate the hash like so:

C:\> PATH_TO_GIT\bin\openssl.exe x509 -noout -hash -in PATH_TO_CA_CERT.PEM

Rename the CA-file to the output of the command and add ".0" as extension (e.g. 0dbd0096.0). This way openssl find the CA wich can be used to certify your server-certificate.

Find more information here: http://gagravarr.org/writing/openssl-certs/others.shtml#ca-openssl

Codeplex and SVN are as slow as they are archaic. Here is what worked for me (different project buy you get the idea)

git svn clone https://iswix.svn.codeplex.com/svn -r42691:HEAD

where 42691 was the oldest changeset in the repo (or the oldest one you want to fetch) and HEAD is ...duh, the head.

I found the changeset number by looking at the history tab in the source code page. It's the last one.

I tried all sorts of settings with TortoiseGit but it wouldn't play, command line or bust.

Now go make a cup of tea or bake a cake, it will take quite some time.

If (on Windows) you open the Resource Monitor and look for perl.exe under "network" and see it is talking to svn.codeplex.com then it is working.

use http without ssl. I use fetch from sourceforge https://xmlvm.svn.sourceforge.net/svnroot/xmlvm/ encomes this issue,and I just change url to http://xmlvm.svn.sourceforge.net/svnroot/xmlvm/ It works fine

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!