我是 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"
请告诉我该怎么做