【问题标题】:setting remote url not changing to https设置远程 url 不更改为 https
【发布时间】:2021-10-19 12:52:23
【问题描述】:

我正在尝试从 git@github.com:BuddyBob/Py_Programs.git 更改我的远程 URL 到**https://**github.com/user/repo2.git。

我就是这么干的

git remote set-url origin https://github.com/BuddyBob/Py_Programs.git

和

git remote -v   

但似乎没有任何改变

origin  git@github.com:BuddyBob/Py_Programs.git (fetch)
origin  git@github.com:BuddyBob/Py_Programs.git (push)

我做错了什么?

【问题讨论】:

标签: git git-remote


【解决方案1】:

够有趣的。我深入研究了我的 github 配置。

我意识到在我拥有的文件的某个地方。这可能是我的问题的原因。

[url "git@github.com:"]
      insteadOf = https://github.com/

所以我把它们调换了。 你知道什么!

我只是跑

git remote set-url origin https://github.com/BuddyBob/Py_Programs.git

和

git remote -v   

我明白了

origin  https://github.com/BuddyBob/Py_Programs.git (fetch)
origin  https://github.com/BuddyBob/Py_Programs.git (push)

【讨论】:

    猜你喜欢
    • 2019-11-12
    • 1970-01-01
    • 1970-01-01
    • 2015-05-13
    • 2020-12-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多