1.更换Git账户在idea中File-->Settings-->Appearance-->System Settings-->Passwords,选择不保存密码(Do not save),重启项目。再次提交会让输入账户和密码Git的非命令操作https://blog.csdn.net/autfish/article/details/52513465