VS 解决方案而不是项目上的 Git 存储库
目前,我使用 Git(带有 Visual Studio 的 Git 扩展)作为我的应用程序的版本控制系统。
我的应用程序由 VS2010 中的 4 个项目组成,位于一个解决方案中,并且我创建了 4 个不同的 git 存储库。然而,每次我想要提交完整的解决方案时,我都必须一一提交所有 4 个项目。
仅当选择 Visual Studio 中的项目时才可选择提交选项,而选择完整解决方案时则不可选择。由于我通常一次更改 2 或 3 个项目,因此如果我可以提交解决方案而不是 4 个单独的项目,会更容易(主要原因是我只需添加一次描述,例如)。例如,其中一个项目是单元测试项目,它通常在其他项目中添加文件时发生更改。
我找不到一种方法来拥有一个完整的解决方案的单个 Git 存储库...这可能吗?或者是否有原因导致这不可能,或者有更好的替代方案?
Currently I use Git (with Git Extensions for Visual Studio) as version control system of my application.
My application consists of 4 projects in VS2010 inside one solutions and I have created 4 different git repositories. However, every time I want to commit my complete solution, I have to commit all 4 projects, one by one.
The commit option is only selectable when a project in Visual Studio is selected, but not when the complete solution is selected. Since I generally change 2 or 3 projects at a time, it would be easier if I could commit the solution instead of 4 individual projects (main reason is that I only have to add a description once for example). E.g. one of the projects is the unit tests project which typically changes when adding files in the other projects.
I couldn't find a way to have a single Git repository for a complete solution... is this possible or is there a reason why this is not possible, or a better alternative?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看来我使用了一些错误的目录,因为其中一个项目以某种方式将所有信息存储到 GIT 数据库中。
我仍然需要摆脱其他三个,但我担心我会丢失历史信息,所以我保留现在的样子。
It seems that I used some wrong directory because one of these projects somehow stores all information to the GIT database.
I still have to get rid of the other three, but I'm afraid I will lose history information so I leave it as it is now.