gpt4 book ai didi

git - 在 VB6 中使用 Git

转载 作者:IT王子 更新时间:2023-10-29 01:29:46 32 4
gpt4 key购买 nike

我们公司在 VB6 中有一个大型代码库,我们目前使用 VSS,尽管我们讨厌它,但它至少集成到 VB6 IDE 中。

我自己的团队使用 .NET,现在正在研究替代 SCM,例如我个人最喜欢的 Git。用Git Extensions ,看来我们将能够很好地将 Git 命令集成到 Visual Studio IDE 中。

但是,有人提出了一个问题:Git 也可以用于我们的 VB6 代码库吗?

当然,我假设文件本身可以在 git 存储库中正常工作,但毫无疑问,如果开发人员必须使用命令行来完成所有源代码控制,他们会提示。但是有没有人有使用 VB6 和 Git 的经验? VB6 IDE 中是否有可用的集成?或者没有 IDE 集成可能不是那么麻烦?

我会因为第一个创建 [vb6] 和 [git] 的荒谬标签组合而获得徽章吗?

最佳答案

我发现这个解决方案适用于我们的情况。它为之前的答案增加了一些内容,并解决了我们所有的许多问题,让我们的项目与 git 一起工作。

.gitattributes

# Set the default behavior, in case people don't have core.autocrlf set.
* text eol=auto
*.bas text eol=crlf
*.frm text eol=crlf
*.log text eol=crlf
*.vbp text eol=crlf
*.cls text eol=crlf
*.vbw text eol=crlf
*.dsr text eol=crlf
*.ini text eol=crlf
*.res binary
*.RES binary
*.frx binary
*.exe binary
*.dll binary
*.ico binary
*.gif binary
*.ocx binary
*.tlb binary
*.ocx.bin binary
*.ism binary
*.bin binary
*.aps binary
*.ncb binary
*.exe.compat binary
*.ocx.compat binary

.gitignore

.DS_Store
.Trashes
*.vbw
*.csi
*.exp
*.lib
*.lvw
*.dca
*.scc
*.tmp
<name of built binary, exe, dll or ocx>

关于git - 在 VB6 中使用 Git,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2462480/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com