git errors

1.
error: The requested URL returned error: 403 while accessing https://github.com/dcant/codegenerate.git/info/refs

fatal: HTTP request failed

solution:

Github seems only supports ssh way to read&write the repo, although https way also displayed 'Read&Write'.

So you need to change your repo config on your PC to ssh way:

  1. edit .git/config file under your repo directory
  2. find url=entry under section [remote "origin"]
  3. change it from url=https://github.com/dcant/codegenerate.git to url=ssh://[email protected]/dcant/codegenerate.git.
  4. Save config file and quit. now you could use git push origin master to sync your repo on GitHub
發佈了36 篇原創文章 · 獲贊 5 · 訪問量 3萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章