我是git和python的新手,我想尝试做:
git push origin master using Dulwich
我已经将远程代码仓库克隆到本地仓库"local_repo",现在正在试图执行以下操作:
porcelain.push(local_repo,'git://github.com/myusername/myrepo')
而且它显示错误:
"dulwich.errors.GitProtocolError: You can't push to git://github.com/myusername/myrepo Use https://github.com/myusername/myrepo.git"
当我使用时:
porcelain.push(local_repo,'https://github.com/myusername/myrepo.git')
它显示错误:
"dulwich.errors.GitProtocolError: unexpected http response 401"
请告诉我如何着手处理这个问题。
401
表示身份验证无效。 - shad0w_wa1k3r