git出错: Cannot save the current index state

浏览:23日期:2023-09-04

问题描述

git出错: Cannot save the current index state

请问各位,这是啥情况,我现在提交不了本地文件到服务器上去。然后我跟着提示运行了git config --global这些指令了。最后我再执行git status发现本地已没有需要commit的文件,但是服务器上确实也没有更新到。如果有前辈遇到过此问题,希望能帮忙解答,万分感谢。

问题解答

回答1:

git config user.name 'username'git config user.email 'username@XXX.com'

填写一下你的用户名和邮箱

相关文章: