git config [section] errors & solutions All In One
git config [section] errors & solutions All In One
fix git [section] warnings
- global config
$ vim ~/.gitconfig
[user]
email = xgqfrms@xgqfrms.xyz
name = xgqfrms
$ cat ~/.gitconfig
- project local config
$ vim .git/config
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[user]
name = xgqfrms
email = xgqfrms@ufo.com
$ cat .git/config
demos
before
error: key does not contain a section: email
error: key does not contain a section: name
after
git config & color.ui
$ git config --global user.name "xgqfrms"
$ git config --global user.email xgqfrms@xgqfrms.xyz
# color.ui
$ git config --global color.ui true
refs
https://stackoverflow.com/questions/45174228/git-error-key-does-not-contain-a-section
https://www.thetopsites.net/article/52099522.shtml
git error (email & name)
https://github.com/xgqfrms/git/issues/27#issuecomment-706508420
git 实验
https://www.lanqiao.cn/courses/4/learning/
©xgqfrms 2012-2020
www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!
本文首发于博客园,作者:xgqfrms,原文链接:https://www.cnblogs.com/xgqfrms/p/13794243.html
未经授权禁止转载,违者必究!