简体   繁体   English

如何在已经存在的本地 git 存储库上设置 Visual Studio 2019?

[英]How do I set up Visual Studio 2019 on a local git repository which already exists?

All the literature states that there should be no problem to set up multiple clients to the same local git repository.所有文献都指出,将多个客户端设置到同一个本地 git 存储库应该没有问题。 Indeed, I already have Visual Studio 2015 and SourceTree both set up on the same local repository with no problem.事实上,我已经在同一个本地存储库上设置了 Visual Studio 2015 和 SourceTree,没有任何问题。 My question is specifically how to set up Visual Studio 2019 on a local git repository which is already populated.我的问题特别是如何在已经填充的本地 git 存储库上设置 Visual Studio 2019。 The Wizard which takes me through the process within the VS 2019 IDE balks when I select a local folder which is already populated.当我选择一个已经填充的本地文件夹时,向导会引导我完成 VS 2019 IDE 中的过程。

在此处输入图片说明

So what is the process to connect VS 2019 to a repository which already exists, as opposed to creating a new repository?那么将 VS 2019 连接到已经存在的存储库的过程是什么,而不是创建一个新的存储库?

Thanks for your advice!谢谢你的建议!

Actually, I find that simply opening a solution file from within the local git repository automatically connects me to the server.实际上,我发现只需从本地 git 存储库中打开解决方案文件即可自动将我连接到服务器。 I can view history, commit, sync, etc. It looks like I was looking for a process which is simply unnecessary.我可以查看历史记录、提交、同步等。看起来我正在寻找一个根本不需要的过程。 It looks like all the connection information is stored within the local git itself and Visual Studio 2019 automatically connects using this information.看起来所有连接信息都存储在本地 git 本身中,Visual Studio 2019 会使用此信息自动连接。

It all just works seamlessly.这一切都可以无缝运行。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在 Visual Studio 2019 中创建本地 git 存储库? - How to fork a local git repository in Visual Studio 2019? 如何设置本地Git存储库和本地备份目录? - How do I set up a local Git repository and a local backup directory? 在Xcode 4中如何将项目与我设置的本地Git存储库相关联? - in Xcode 4 how to associate a project to the local Git repository I set up? 在Visual Studio中使用Git,如何导航存储库文件? - Using Git in Visual Studio, how do I navigate repository files? 如何在 Visual Studio 2019 中删除本地 git 存储库? - How to remove local git repositories in Visual Studio 2019? 如何将已建立的本地git存储库链接到新的远程存储库并将所有文件推送到远程? - How do I link an already established local git repository to a new remote repository and push all files to remote? 如何设置我的git存储库以便轻松地在Visual Studio中重用项目 - How do I set up my git repositories to easily be able to reuse projects in Visual Studio 在Visual Studio 2019中,是否可以将本地源代码控制存储库设置为解决方案文件夹以外的其他位置? - In Visual Studio 2019, can I set my local source control repository to somewhere other than in my solution folder? “导出” git for Visual Studio 2019 中的本地分支 - “Export” a local branch in git for Visual Studio 2019 如何在Visual Studio中将本地文件与Git上的本地文件进行比较 - How do I compare a local file with the one on Git in Visual Studio
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM