DarkMatter in Cyberspace
  • Home
  • Categories
  • Tags
  • Archives

List Git Configurations


The output of git config --list is composed by 3 parts:

# output of git config --system --list (read from '/etc/gitconfig')
core.symlinks=false
core.autocrlf=true
color.diff=auto
color.status=auto
color.branch=auto
color.interactive=true
pack.packsizelimit=2g
help.format=html
http.sslcainfo=/ssl/certs/ca-bundle.crt
diff.astextplain.textconv=astextplain
rebase.autosquash=true

# output of git config --global --list
user.email=leechau@126.com
user.name=Li Chao
core.editor=vim
core.autocrlf=input
core.eol=lf

# output of git config --local --list
core.repositoryformatversion=0
core.filemode=false
core.bare=false
core.logallrefupdates=true
core.ignorecase=true
remote.origin.url=git@github.com:leetschau/dsnote.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.master.remote=origin
branch.master.merge=refs/heads/master

Some conifgurations, such as core.autocrlf appear in both system and global level. Such global configurations will overwrite their system level counterparts. And local configs will overwrite global and system-level counterparts.

Verified on cygwin and cmder on Windows 10.



Published

Aug 5, 2017

Last Updated

Aug 5, 2017

Category

Tech

Tags

  • config 7
  • git 36
  • list 3

Contact

  • Powered by Pelican. Theme: Elegant by Talha Mansoor