今天在使用git clone克隆項目的時候報如下錯誤:
$ git clone XXXXXX Cloning into 'XXXX'... fatal: Authentication failed for 'XXXXXX'
在網上查找了一番,也使用如下命令進行了設置:
git config --global user.name git config --global user.email
同時也清除了windows憑證管理器中記錄的憑證,仍然不行,最后使用了如下命令解決:
git config --system --unset credential.helper
特此記錄一下,以備后續不時之需。