我看了所有关于配置“git pull”用户名/密码的问题,但没有一个解决当远程代码库是404错误时的问题。
我曾经从github克隆过一个代码库。由于某种原因,代码库的所有者已经删除了代码库,因此“git pull”失败。然而,在它失败之前,“git pull”会要求输入用户名和密码。
这是因为我有一个克隆了github git代码库的目录,并且正在尝试通过shell脚本更新它们,该脚本进入每个目录并执行“git pull”。
我曾经从github克隆过一个代码库。由于某种原因,代码库的所有者已经删除了代码库,因此“git pull”失败。然而,在它失败之前,“git pull”会要求输入用户名和密码。
这是因为我有一个克隆了github git代码库的目录,并且正在尝试通过shell脚本更新它们,该脚本进入每个目录并执行“git pull”。
$ git pull
ksshaskpass: cannot connect to X server
error: unable to read askpass response from '/usr/lib/ssh/ssh-askpass'
Username for 'https://github.com':
ksshaskpass: cannot connect to X server
error: unable to read askpass response from '/usr/lib/ssh/ssh-askpass'
Password for 'https://github.com':
remote: Repository not found.
fatal: Authentication failed for 'https://github.com/[ ... ]