最近发现每天都提交代码,但是码云却有几天是中断的,排查原因原来是我没有设置提交邮箱
如果没有设置邮箱,这个地方是 默认按照
git config --global user.email 'jgl1210@qq.com'
➜ yuyue git:(master) git commit --amend --reset-author
[master 0fc745d] test
Committer: 小时光 <mac@MacdeMacBook-Pro.local>
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly:
git config --global user.name "Your Name"
git config --global user.email you@example.com
After doing this, you may fix the identity used for this commit with:
git commit --amend --reset-author
1 file changed, 1 insertion(+)