git-config

linked

让git log变成彩色

命令:

git config [--global] color.ui true

.git/config配置文件

[color]
  ui = true

让git log每条记录显示为一行

命令:

git log --pretty-oneline

[Some Text][]

样式:oneline, short, medium, full, fuller, email, raw, format: defaults to medium. .git/config配置文件

[format]
  pretty = oneline
  

git config core.editor <vim>  # interactive commands
git config merge.tool <opendiff>  # merging/conflicts

[This is other text][]

SomeText

test
test
test

test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test
test

SomeText

Other Text [This is other text]