简体   繁体   中英

How do you link a Git Repo to an Existing Git Repo in a project using Visual Studio

I have 2 projects which i have cloned one in "ConnectData" folder and one in "MinimalAPI" folder i started the "MinimalAPI" project and everything works fine, git links the files and i have that lock icon next to each file. But when i want to reference another project which is cloned such as the "ConnectData" project inside the "MinimalAPI" project, the "ConnectData" project does not seem to be linked to git as the lock icon isn't there, this will explain further in the i在此处输入图像描述 mage below: As you can see the Connect.Data project isnt linked to git but minimalapi is so how do i link connect.data to git within this project?

Visual Studio is currently testing this feature, and it is still in preview. If you want to enable it you've to go to your options and then 'Preview Features'. You can find the following setting:

在此处输入图像描述

If you enable that, then it should work.

You can read more about it here in one of their blogs. Make sure you've at least Visual Studio 2022.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM