xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

git config [section] errors & solutions All In One

git config [section] errors & solutions All In One

fix git [section] warnings

  1. global config
$ vim ~/.gitconfig

[user]
  email = xgqfrms@xgqfrms.xyz
  name = xgqfrms


$ cat ~/.gitconfig

  1. 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

image

after

image

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

image

refs

https://stackoverflow.com/questions/45174228/git-error-key-does-not-contain-a-section

https://www.thetopsites.net/article/52099522.shtml

https://community.atlassian.com/t5/Bitbucket-questions/Can-t-get-past-error-message-when-trying-to-git-global-config/qaq-p/1016926

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 发布文章使用:只允许注册用户才可以访问!


posted @ 2020-10-10 18:08  xgqfrms  阅读(211)  评论(3编辑  收藏  举报