问题描述
当我这样做
remote = f"https://{username}:{password}@github.com/user/repo"
git.Repo.clone_from(remote,'repo')
我可以使用我的个人凭据克隆存储库。
但是如果我尝试使用应用凭据
remote = f"https://x-access-token:{token}@github.com/user/repo.git"
git.Repo.clone_from(remote,'repo')
我明白
远程:无效的用户名或密码。致命:身份验证失败 'https://github.com/user/repo'
我已安装该应用程序并将其添加到存储库集成中。它具有读取和写入的内容权限。
我使用客户端密钥作为令牌。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)