104 字
1 分钟
我的git设定
2018-11-15

用了时间比较长的git了,但是基本上都是git clone,git push,用checkout的都比较少,做文件还原倒还有几次。

贴下当前的git config —list内容,做个摘要

Terminal window
MACBOOKPRO:learn hunhun$ git config --list
credential.helper=osxkeychain
user.name=admin
user.email=xxx@xyz.com
alias.lg=log --color --graph --pretty=format:'%Cred%H%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
core.ignorecase=true
core.precomposeunicode=true

下面是.gitconfig的内容

Terminal window
[user]
name = admin
email = xxx@xyz.com
[http]
[alias]
lg = log --color --graph --pretty=format:'%Cred%H%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
我的git设定
https://dididudu998.github.io/posts/我的git设定/
作者
滴滴嘟嘟
发布于
2018-11-15
许可协议
CC BY-NC-SA 4.0