我们公司在VB6中有一个很大的代码库,我们目前使用的是VSS,尽管我们讨厌它,但它至少集成到了VB6 IDE中。
我自己的团队正在使用.NET,现在正在研究替代的SCM,比如我个人最喜欢的Git。使用Git扩展,我们似乎能够很好地将Git命令集成到Visual中。
然而,有人提出了这样的问题: Git也能用于我们的VB6代码库吗?
当然,我假设这些文件本身在git存储库中会正常工作,但是毫无疑问,如果开发人员不得不使用命令行来进行所有的源代码管理,他们肯定会抱怨。但是,有没有人有使用VB6和Git的经验?可以从VB6 IDE中获得任何集成吗?或者,没有IDE集成可能不那么麻烦吗?
如果我是第一个创建vb6和git的荒谬标签组合的人,我会得到徽章吗?
发布于 2016-05-18 22:35:12
在我们的情况下,我找到了这个解决方案。它为以前的答案添加了更多内容,解决了我们所有的许多问题,使我们的项目能够与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>发布于 2010-04-08 07:46:43
使用Git来管理VB6项目已经有一年了。从未见过任何IDE集成。就我个人而言,我喜欢命令行,所以我不太喜欢它。我遇到的两个主要问题是:
发布于 2016-02-06 15:01:14
您必须创建文件.gitattributes才能使用windows行尾(crlf),因为git是在unix中诞生的。
# Declare files that will always have CRLF line endings on checkout.
*.vbp text eol=crlf
*.frm text eol=crlf
*.cls text eol=crlf
*.bas text eol=crlf
*.dsr text eol=crlf
*.ini text eol=crlf
# Denote all files that are truly binary and should not be modified.
*.frx binary
*.exe binary
*.dll binary
*.ocx binary还可以使用以下行创建.gitignore文件:
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
# User-specific files
*.vbw
*.tmp
*.scc
*.dcahttps://stackoverflow.com/questions/2462480
复制相似问题