gitconfig 全局配置文件。

[user]
    name = Fairyin
    email = fairyin@126.com
[core]
abbrev = 8
autocrlf = input
eol = lf
[push]
default = simple
[i18n]
commitEncoding = utf-8
logOutputEncoding = utf-8
[color]
branch = auto
diff = auto
grep = auto
interactive = auto
pager = true
showbranch = auto
status = auto
ui = auto
[color "branch"]
local = yellow normal
current = green normal ul
remote = black bold
[alias]
aci = commit --amend
acis = commit -veS --amend
addall = "!'git' add $('git' status | 'awk' '\"modified:\"==$2{print $3}')"
br = branch
ci = commit -ve
cis = commit -veS
co = checkout
diffc = diff --cached
eaci = "!EDITOR='emacs' 'git' aci"
eacis = "!EDITOR='emacs' 'git' acis"
eci = "!EDITOR='emacs' 'git' ci"
ecis = "!EDITOR='emacs' 'git' cis"
glog = log --pretty='%C(yellow normal)%h%Creset %C(red normal ul)%G?%Creset %C(white normal)%s%Creset %C(blue normal)[%an]%Creset %C(black normal bold)%ar%Creset' --graph
ls = "!cd \"${GIT_PREFIX}\"; \
maxlen=$( \
'git' ls-tree --name-only HEAD . | while read file; do \
'ls' -DF \"$file\"; \
done | 'wc' -L \
); \
'git' ls-tree --name-only HEAD . | while read file; do \
[ -e \"$file\" ] || continue; \
len=$( 'ls' -dF \"$file\" | 'wc' -c ); \
clen=$( 'ls' -dF --color \"$file\" | 'wc' -c ); \
[ 's' == \"s$('git' log -1 --pretty='%G?' \"$file\")\" ] && tpl=' ' || tpl='%C(red normal ul)%G?%Creset'; \
'printf' \"%-$( 'expr' $maxlen + $clen - $len )s\" \"$( 'ls' -dF --color \"$file\" )\"; \
'git' log -1 --pretty=\" %C(yellow normal)%h%Creset $tpl %C(white normal)%s%Creset %C(blue normal)[%an]%Creset %C(black normal bold)%ar%Creset\" \"$file\" | 'head'; \
done"
naci = "!EDITOR='nano' 'git' aci"
nacis = "!EDITOR='nano' 'git' acis"
nci = "!EDITOR='nano' 'git' ci"
ncis = "!EDITOR='nano' 'git' cis"
st = status
vaci = "!EDITOR='vim' 'git' aci"
vacis = "!EDITOR='vim' 'git' acis"
vci = "!EDITOR='vim' 'git' ci"
vcis = "!EDITOR='vim' 'git' cis"
# vi: ft=gitconfig ff=unix noet tw=198486

转载于:https://www.cnblogs.com/fairyin/p/4449537.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值