出现这个问题应该是在新的文件夹clone了代码,然后修改代码之后出现的问题。首先当你想Git commit的时候会出现如下提示
*** Please tell me who you are. 4 5 Run 6 7 git config --global user.email "you@example.com" 8 git config --global user.name "Your Name" 9 10 to set your account's default identity. 11 Omit --global to set the identity only in this repository.ok,非常棒,按照提示做就行了,记得email和username都要设置哦,(我就很傻比,只设置了其中一个,所以还会出现上面的问题)