我使用公共克隆URL克隆了一个要点.我做了我的更改,添加和承诺.但是,当我运行时,git push origin master我收到以下错误:
fatal: remote error:
You can't push to git://github.com/1234567.git
Use git@github.com:1234567.git
Run Code Online (Sandbox Code Playgroud)
但根据git remote -v原点应该在gist.github.com子域
origin git://gist.github.com/1234567.git (fetch)
origin git://gist.github.com/1234567.git (push)
Run Code Online (Sandbox Code Playgroud)
有关解决此错误的任何想法?谢谢!
Emi*_*ily 23
您是否尝试过更改错误提示的远程URL?尝试做:
git remote set-url --push origin git@github.com:1234567.git
Run Code Online (Sandbox Code Playgroud)
目前,您正在使用HTTP进行连接,并希望您使用SSH进行连接.
| 归档时间: |
|
| 查看次数: |
2335 次 |
| 最近记录: |