简书链接:gitpullRepositorynotfound
文章字数:348,阅读全文大约需要1分钟
解决办法如下图。

1
2
 git credential-manager uninstall
git credential-manager install

原理是清除记住的密码,重新输入密码。但是not found给人的错觉就是仓库不存在,真是莫名其妙
下面是探索过程。

1
git.exe pull --progress -v --no-rebase "origin"

remote: Repository not found.

fatal: repository ‘https://github.com/qssq/XposedInstallerPuppetManager.git/' not found

image.png

分别是卸载和重新安装密码管理器,
执行后一共是对配置文件进行了修改。
image.png

执行卸载其实就是把gitconfig进行了更新,
image.png

1
2
3
4
5
6
7
8
9
10
Looking for Git installation(s)...
C:\Program Files\Git

Updated your /etc/gitconfig [git config --system]
Updated your ~/.gitconfig [git config --global]

Removing from 'C:\Program Files\Git'.
removal failed. U_U

Press any key to continue...

本文并非原创,不过是我验证可用的方法。