Git remote: Unauthorized

remote: Unauthorized
fatal: Authentication failed for 'https://gerrit.onap.org/r/oom/'
 

 

原因:git 登录时用了一个没有权限的账号

解决:

控制面板 凭据管理器
windows10 systerm

打开控制面板找到 ‘用户账户’

进入windows管理凭据

删除之前设置的gerrit账户\

在重新清除 重设用户,邮箱,就可以上传代码了

            git credential-manager clear https://gerrit.onap.org

            git config --global user.name 新的Name

            git config --global user.email 新的email