使用 msysgit 是否会导致存储库损坏?

发布于 2024-08-31 17:56:42 字数 419 浏览 4 评论 0原文

在翻阅 chromium 代码文档时,我发现了这篇文章:

http:// code.google.com/p/chromium/wiki/UsingGit#Windows

如果您正在使用 msysgit,那么您 自找麻烦。同时使用 msysgit (包括 TortoiseGit)和 cygwin 的 git 的版本是通往的路径 存储库损坏,因此更安全 坚持使用 cygwin 的版本。所以如果 你的 PATH 中仍然有 msysgit, 你只能靠自己了。

这真的会发生吗?是什么原因导致腐败呢?

While stumbling through the chromium code documentation, I came across this post:

http://code.google.com/p/chromium/wiki/UsingGit#Windows

If you are using msysgit, you are
asking for trouble. Using both msysgit
(including TortoiseGit) and cygwin's
version of git is a path to lead to
repository corruption so it's safer to
stick with the cygwin's version. So if
you still have msysgit in your PATH,
you are on your own.

Does this really happen? What causes the corruption?

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

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

发布评论

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

评论(2

万劫不复 2024-09-07 17:56:42

这取决于警告的撰写时间,但在该段落的更下方,它建议:

一定要关闭 git 的 crlf munging:

git config --global core.autocrlf false

我猜这是行结束转换问题和 msysgit 在编写该文档时不稳定的组合。然而,由于我自己只使用过 git-svn 进行从 SVN 到 Git 的导入,而不是双向协作,因此该警告可能仍然有效。

It depends when the warning was written, but further down the paragraph it suggests:

Be sure to turn off git's crlf munging:

git config --global core.autocrlf false

My guess it that it's a combination of line-ending conversion problems and msysgit not being stable when that bit of documentation was written. However, having myself only ever used git-svn to do an import from SVN to Git, and not two-way collaboration, it's possible that the warning is still valid.

浸婚纱 2024-09-07 17:56:42

我在 2009 年初看到 msysgit 破坏了两个 Chromium 签出。我想大概就是在那个时候写下这个警告的。那时 git-svn 支持似乎还不成熟。从那时起我就不再使用 msysgit —— 真是可惜,因为它的速度快了 4 到 5 倍。也许现在情况好多了?

I saw msysgit corrupt two Chromium checkouts in early 2009. I think that's roughly when this caveat was written. It seemed that git-svn support was immature at that point in time. I've avoided msysgit since then -- a real shame, because it's 4x-5x faster. Maybe things are better now?

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