gpt4 book ai didi

git - 将现有的 Visual Studio 2013 项目添加到 Git 源代码管理

转载 作者:太空狗 更新时间:2023-10-29 13:47:02 26 4
gpt4 key购买 nike

您好,我正在尝试从我拥有的几个解决方案中添加我的源代码。

我已经安装了 Visual Studio 2013。

在我的一个解决方案中,我有 22 个项目。

当我尝试“将解决方案添加到源代码管理”时,我收到以下消息:

The current solution has projects that are located outside the solution folder. These projects will not be source controlled in the Git repository. To add all the projects to a single Git repository please consolidate all projects under a single folder.

那么我是否必须将所有项目移动到解决方案文件夹中?

我的许多项目都被不止一个解决方案使用,所以我宁愿留下我自己的文件结构。如果我这样做,它不会弄乱我现有的解决方案吗?

或者是否有其他方法可以将单个项目添加到源代码管理中?

或者我在理解源代码控制方面犯了一些根本错误?

谢谢

最佳答案

Or is there another way to add individual projects into source control?

您可以避免使用 Visual Studio 界面,而是直接使用 Git 将您的个人项目添加到源代码管理。如果你使用的是Github什么的,请先阅读相关说明。例如 https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/

关于git - 将现有的 Visual Studio 2013 项目添加到 Git 源代码管理,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28710593/

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