【发布时间】:2017-08-25 02:54:17
【问题描述】:
github 企业版,windows 10。email+token 仅适用于 github 桌面工具。在 powershell、git bash 和 cmd 控制台中失败。
错误 - 远程:未找到存储库。致命:https://(enterprise hostname)/(org name)/(repo name).git 的身份验证失败
运行测试场景:在 github 站点上创建了新的 repo,使用的路径来自克隆链接。使用示例代码生成 readme.md, git add 。 (成功); git commit -m "notes"(成功); git push -u origin master(失败)
git config --system contains "config.helper=manager" (GCM)
GCM 弹出提示输入凭据(输入电子邮件;令牌),连接失败,并且 github 也未添加到 windows 凭据管理器。
GCM 提示输入凭据(取消),命令行提示输入用户名(电子邮件)和密码(令牌),连接失败
cmd runas 管理员
git config --system --unset config.helper (no effect)
git config --system config.helper=wincred (no effect)
git config --system config.helper=cache (no effect)
git config --system --list (still shows "config.helper=manager")
尝试删除原点并重置,没有效果
git 存在于我机器上的多个位置:
- C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git
- C:\Program Files\Git
- C:\Users{用户名}\AppData\Local\GitHub\PortableGit_f02737a78695063deace08e96d5042710d3e32db
Github desktop --> options: 能够成功添加github企业登录: 电子邮件或用户名;令牌; https://(enterprise主机名) 能够成功“同步”
我是组织和回购协议的创建者和所有者。 所有这些都在 Windows 7 上运行,我刚刚安装了 Windows 10 并生成了一个新令牌,试图拉下我的存储库并使它们进入可用状态。
做了很多研究,尝试了几件事,不知道还能尝试什么,真的需要命令行界面才能工作。任何建议,不胜感激。
【问题讨论】:
标签: authentication cmd windows-10 github-enterprise