使用 git push时遇到错误:
error: RPC failed; HTTP 401 curl 22 The requested URL returned error: 401

这是因为本地保存了错误的账号密码导致,需要清除本地保存的账号密码信息,那么再次提交代码是就会重新让你输入账号密码了。

解决方案:
git config --system --unset credential.helper
然后重新push
git操作详见:https://www.cnblogs.com/jpfss/p/10925852.html