如何编辑我的 git 来源?致命:不支持协议'git@https'


git push -u origin master

显示

fatal: protocol 'git@https' is not supported
git remote -v
origin  git@https://github.com/me/repo (fetch)
origin  git@https://github.com/me/repo (push)

我该如何更改git@https启用git push?

你试过这个吗?我从来没有见过git@...,我不知道这是否是解决方案,但这是我尝试的第一件事。

git remote set-url origin https://github.com/me/repo.git

最新更新