先在终端执行命令 清空账号密码 sudo git config --system --unset credential.helper 然后再次push,会提示输入账号密码,然后输入正确的账号和密码就可以了。