无法 运行 git windows 中的 svn 命令

Not able to run git svn command in windows

git svn 命令在 windows 中不起作用。我已经为windows下载了git的最新稳定版(2.33.0.2)。执行 git svn 命令时出现以下错误。 奇怪的是它在 windows 上寻找 unix 风格路径中的 Perl 库。 请帮我解决问题。

执行后的错误信息git svn:

Can't load '/usr/lib/perl5/vendor_perl/auto/SVN/_Core/_Core.dll' for module SVN::_Core: No such file or directory at /usr/lib/perl5/core_perl/DynaLoader.pm line 193. at /usr/lib/perl5/vendor_perl/SVN/Base.pm line 59. BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/SVN/Core.pm line 5. Compilation failed in require at C:/Program Files/Git/mingw64/share/perl5/Git/SVN/Utils.pm line 6. BEGIN failed--compilation aborted at C:/Program Files/Git/mingw64/share/perl5/Git/SVN/Utils.pm line 6. Compilation failed in require at C:/Program Files/Git/mingw64/share/perl5/Git/SVN.pm line 32. BEGIN failed--compilation aborted at C:/Program Files/Git/mingw64/share/perl5/Git/SVN.pm line 32. Compilation failed in require at C:/Program Files/Git/mingw64/libexec/git-core\git-svn line 64. BEGIN failed--compilation aborted at C:/Program Files/Git/mingw64/libexec/git-core\git-svn line 64.

有一个错误报告可用于损坏的 git svn 命令,请参阅 https://github.com/git-for-windows/git/issues/3392 and https://github.com/git-for-windows/git/issues/3403

试试最新的 git 的 windows 快照,看这里 https://wingit.blob.core.windows.net/files/index.html)。

作为解决方法,您可以从 MSYS64 或稍旧的 Git 安装包中获取缺少的 msys-expat-1.dll,并将其放置在 C:\Program Files\Git\usr\bin(或任何您的路径)中。