joh*_*ith 3 git github git-push
我克隆了我的github.
并打开几个文件,更改了一些code,现在我想将此代码发布到我的githu.com/user/repo.git存储库.但是当我这样做..
root@linux# cd myRepo/
root@linux# git commit -a -m "Updated footer"
root@linux# git push origin master.
Run Code Online (Sandbox Code Playgroud)
我收到以下错误: -
fatal: remote error:
You can't push to git://github.com/user/repo.git
Use https://github.com/user/repo.git
Run Code Online (Sandbox Code Playgroud)
请不要告诉我google的路径,我已经尝试过它们并且在失败之后,我在这里写它们.
您使用只读 URL 克隆了存储库.将原始远程的URL更改为在错误消息中为您提供的读写URL:
git remote set-url origin https://github.com/user/repo.git
Run Code Online (Sandbox Code Playgroud)
然后再试一次.(此时您可能需要提供GitHub凭据.)
| 归档时间: |
|
| 查看次数: |
2507 次 |
| 最近记录: |