gpt4 book ai didi

windows - 将默认的 git 源添加到 visual studio?

转载 作者:可可西里 更新时间:2023-11-01 11:45:59 24 4
gpt4 key购买 nike

我使用 bitbucket 并通过 VS 克隆存储库。

我必须在 vs 中手动粘贴 https 存储库链接才能克隆它(在团队资源管理器选项卡中)。

有没有一种方法可以将 VS 指向 bitbucket,这样我就可以浏览我的 bitbucket 存储库并选择我想要的存储库,而不必手动查找链接并将其粘贴进去?

最佳答案

Visual Studio page "Clone an existing Git repo"很清楚:

Before you can clone an existing repo, you'll need a URL that points to the existing repo. This URL represents the source of the repo you're going to copy during the clone.

因此您需要事先复制它:您不能直接从 VS“浏览”可用的存储库。

例如:

If you need to clone a GitHub repo, you'll need to get the clone URL from the Clone or download button while viewing the repo on the web in GitHub.

Other Git providers have similar buttons in their user interface to get the clone URL.

对于 Visual Studio,您可以查看“Visual Studio Bitbucket Extension”。
它包括以下功能:

Clone - lists all existing Bitbucket repositories and allows user to clone it locally.

关于windows - 将默认的 git 源添加到 visual studio?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44791235/

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