抱歉 我真的快被 github 上傳機制搞瘋
我自己有 repository,也可以clone,改完上傳輸入帳密就可以上傳
這次拉別人的 repostory ,一直出現
error: The requested URL returned error: 403 while accessing https://github.com/
shines77/gzmalloc.git/info/refs?service=git-receive-pack
fatal: HTTP request failed
然後我試著改 .git/config 內的
https://github.com/oooo/xxxx.git -> ssh://git@github.com/oooo/xxxx.git
自己的主機也產生 ssh key
ssh-keygen -t rsa -C "your_email@youremail.com"
將 id_rsa.pub 加到 github 中,並測試 ssh -T git@github.com
Hi gn00618777! You've successfully authenticated, but GitHub
does not provide shell access.
我仍然無法 push,快瘋了,正事都沒做到,卡這個卡一個下午,拜託諸神,謝。
無法 push 的訊息
ERROR: Permission to tailyn/lobby-greeting-page.git denied to gn00618777.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights