在 VB6 中使用 Git [英] Using Git with VB6

查看:19
本文介绍了在 VB6 中使用 Git的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

Our company has a large codebase in VB6, and we currently use VSS which, for all that we hate about it, at least integrates into the VB6 IDE.

我自己的团队正在使用 .NET,现在正在寻找替代 SCM,例如我个人最喜欢的 Git.使用 Git 扩展,我们似乎能够很好地将 Git 命令集成到 Visual Studio IDE 中.

My own team, which is using .NET, are now looking into alternative SCMs like my personal favourite, Git. With Git Extensions, it seems we will be able to integrate Git commands into the Visual Studio IDE pretty well.

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

However, the question has been asked: could Git be used for our VB6 codebase too?

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

Of course I assume the files themselves would work fine in git repositories, but no doubt developers would complain if they had to use the command-line to do all their source control. But has anyone had any experience using VB6 and Git? Any integration available from within the VB6 IDE? Or is it perhaps not that much of a hassle to not have the IDE integration?

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

And do I get a badge for being the first to create the absurd tag combination of [vb6] and [git]?

推荐答案

我发现这个解决方案适用于我们的情况.它为之前的答案添加了更多内容,并解决了让我们的项目使用 git 的所有问题.

I found this solution to work in our situation. It adds a bit more to the previous answers and solved all of our MANY issues getting our project to work with 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>

这篇关于在 VB6 中使用 Git的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆