【问题标题】:Configure HTTPS Cloned Project via GIT to pull without GIT Password通过 GIT 配置 HTTPS 克隆项目以在没有 GIT 密码的情况下拉取
【发布时间】:2018-08-15 00:20:28
【问题描述】:

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

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

我拉了我一直提示输入 GIT 密码。

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

【问题讨论】:

  • 你给 ssh 密钥输入密码了吗?

标签: git ssh bitbucket ssh-keys


【解决方案1】:

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

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

【讨论】:

  • 第一次尝试就成功了!!
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-08-08
  • 2021-03-18
  • 1970-01-01
  • 1970-01-01
  • 2021-10-18
相关资源
最近更新 更多