git config [section] solutions

git config [section] solutions

fix git [section] warnings

  1. global config
$ vim ~/.gitconfig

[user]
  email = [email protected]
  name = xgqfrms


$ cat ~/.gitconfig

  1. project local config
$ vim .git/config

[core]
  repositoryformatversion = 0
  filemode = true
  bare = false
  logallrefupdates = true

[user]
  name = xgqfrms
  email = [email protected]
$ cat .git/config

demos

error: key does not contain a section: email
error: key does not contain a section: name

before

enter image description here

after

enter image description here

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 發佈文章使用:只允許註冊用戶纔可以訪問!


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章