为什么 git svn fetch 这么慢?

发布于 2024-12-11 18:48:49 字数 153 浏览 4 评论 0原文

我正在尝试 git svn fetch 我的存储库来执行 git rebase -i 我正在本地执行提取,为什么它这么慢?创建 1000 个修订真的需要花费这么多时间吗?看起来这个进程只是在一个文件上“睡着了”,然后突然出现了一系列的活动。

I'm trying to git svn fetch my repo to perform a git rebase -i I'm performing the fetch locally why is it so slow? Should it really take so much time to create 1000 revisions? It seems like the process just "falls a sleep" on a file then suddenly there is a flurry of activity.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

娇纵 2024-12-18 18:48:49

这似乎是“git svn”的 Windows 端口的问题。或者更具体地说,是 windows/cygwin 上“git svn”的 perl 库之一。

克隆 12MB 75 版本 svn 存储库

  linux: 45 seconds
  windows (cygwin): 25 minutes

This seems to be a problem of the windows port of 'git svn'. Or more specifically one of the perl libraries of 'git svn' on windows/cygwin.

cloning a 12MB 75 revision svn repo

  linux: 45 seconds
  windows (cygwin): 25 minutes
染墨丶若流云 2024-12-18 18:48:49

在经历了同样的事情之后,我发现它在 Linux 上比在 Windows 上使用 cygwin 快得多。我会尝试一下。

After going through the same thing, I found it's quite a bit faster on linux than it is with cygwin on windows. I'd give that a try.

信仰 2024-12-18 18:48:49

git svn fetch(和克隆)必须完成繁重的工作并创建整个存储库,与 svn 通信并在本地计算机上创建 git 存储库。您可以在 svn 服务器所在的同一台服务器上执行此操作(这就是我认为您在本地的意思),但 git svn 客户端仍然必须处理大量修订,逐一处理它们并创建存储库。 1000 次修改已经很多了,可能需要一段时间。要有耐心,让它发挥作用。当您处理存储库时,请确保经常获取/变基。

git svn fetch ( and clone) have to do the heavy lifting and create the entire repository, talking to svn and creating the git repository on your local machine. You may do it on the same server where the svn server is ( which is what I think you meant by locally), but still the git svn client has to process a lots of revisions, processing them one-by-one and creating the repo. 1000 revisions is a lot, it might take a while. Be patient and let it do its job. When you work on the repo, make sure you fetch / rebase often.

凌乱心跳 2024-12-18 18:48:49

对于 Windows,此问题仍然存在:拉取/获取挂起,并且没有任何反应。

作为对之前所有答案的补充,我建议在 Windows 计算机上使用 WSL 。您会对获取的速度感到惊喜。它就像一个魅力。

This problem still persists for Windows: pulling/fetching hangs, and nothing happens.

As an addition to all previous answers, I could suggest using of WSL on your Windows machine. You'll be pleasantly surprised by the speed with which the fetch will take place. It works like a charm.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文