通过 GIT 配置 HTTPS 克隆项目以在没有 GIT 密码的情况下提取

Configure HTTPS Cloned Project via GIT to pull without GIT Password

大约 3 周前,我通过 https 将我的项目克隆到我的虚拟机中。

主要目的是为了避免每次都要输入密码,我需要拉。 现在,我创建了一个 SSH 密钥,复制我的 id_rda.pub 并将其添加到我的 BitBucket 访问密钥中。

我拉了我不断收到输入 GIT 密码的提示。

如何配置 GIT 以便我不必通过 SSH 重新克隆?

如果git remote -v仍然显示 HTTPS URL,那么您需要更新它:

git remote set-url origin git@bitbucket.org:owner/repo.git