我接触过的两种情况 1.如果是提交操作的话 可能是项目给的权限不够 2.如果是全部操作的话 以下代码能解决这个问题 git config --global credential.helper store