104 字
1 分钟
我的git设定
用了时间比较长的git了,但是基本上都是git clone,git push,用checkout的都比较少,做文件还原倒还有几次。
贴下当前的git config —list内容,做个摘要
MACBOOKPRO:learn hunhun$ git config --listcredential.helper=osxkeychainuser.name=adminuser.email=xxx@xyz.comalias.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=0core.filemode=truecore.bare=falsecore.logallrefupdates=truecore.ignorecase=truecore.precomposeunicode=true下面是.gitconfig的内容
[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