【发布时间】:2019-06-23 13:18:07
【问题描述】:
我无法将 git 远程 URL 从 git:// 更改为 https://。
如下图所示,git remote set-url 不起作用:
$ git remote -v
来源 git://github.com/userName/repoName.git (fetch)
来源 git://github.com/userName/repoName.git(推送)
$ git remote set-url origin https://github.com/userName/repoName.git
$ git remote -v
来源 git://github.com/userName/repoName.git (fetch)
来源 git://github.com/userName/repoName.git(推送)
我也试过移除遥控器并重新添加它,但无济于事。
.git/config
[remote "origin"]
url = https://github.com/userName/repoName.git
fetch = +refs/heads/*:refs/remotes/origin/*
我检查了许多关于git remote set-url 的查询,但没有一个处理set-url 不起作用的问题。
【问题讨论】: