我试图忘记我的 git 凭证,以便我可以使用 PAT 关闭存储库。
~# git clone [email protected]:your-username/atom.git
Cloning into 'atom'...
Warning: Permanently added the RSA host key for IP address '140.82.113.4' to the list of known hosts.
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
~#
它不会要求我输入密码,这样我就可以输入 PAT。我曾尝试搜索它,但找到的大多数有用信息都是针对 MacOS 的,而我使用的是 Ubuntu。我尝试了以下命令,但没有成功:
~# git config --system --unset credential.helper
~# git config --system --unset credential.helper
~# git config --local --unset credential.helper
fatal: --local can only be used inside a git repository
请帮助我了解如何清除我的凭据,以便我可以使用此 PAT 克隆此 git 存储库。谢谢。