github提交代码403

Github彷佛只支持ssh方式来读取和写入repo,尽管https方式也显示“Read&Write”。git

所以,您须要将PC上的repo配置更改成ssh方式:github

          cd到你的代码路径下vim .git/config
  1. 编辑.git/configr 目录下的文件
  2. 找到url=条目下的条目[remote "origin"]
  3. 将它url=https://MichaelDrogalis@github.com/derekerdmann/lunch_call.git改成url=ssh://git@github.com/derekerdmann/lunch_call.git
  4. 也就是说,@符号前的全部文本更改成ssh://git
  5. 保存config文件并退出。如今你能够用来git push origin master在GitHub上同步你的回购
相关文章
相关标签/搜索