git问题

git

检查问题

git fsck --full

运行仓库的一致性检查

fatal: unable to auto-detect email address

git config user.email "you@example.com"
git config user.name "Your Name"

以上命令会自动在.git/config中添加

[usr]
email=your@email
name=yourname

然而真正要添加的应该是

[user]
email=your@email
name=yourname

可以手动添加,或者自动添加后检查一下

posted @ 2019-12-18 10:37  yu212223  阅读(147)  评论(0编辑  收藏  举报