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:
- edit
.git/config
file under your repo directory - find
url=
entry under section[remote "origin"]
- change it from
url=https://github.com/dcant/codegenerate.git
tourl=ssh://[email protected]/dcant/codegenerate.git
. - Save
config
file and quit. now you could usegit push origin master
to sync your repo on GitHub