我的git的alias设置

作者在 2014-03-11 09:50:08 发布以下内容

修改用户目录下的.gitconfig


[alias]
    st = status
    ci = commit
    br = branch
    ck = checkout
    df = diff
    logs = log --all --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
    co = checkout
    today = "! git log --author=\"gs412\" --pretty=tformat: --numstat --since=1am | gawk '{ add += $1 ; subs += $2 ; loc += $1 - $2 } END { printf \"added lines: %s removed lines : %s total lines: %s\\n\",add,subs,loc }'"


Git | 阅读 2028 次
文章评论,共0条
游客请输入验证码
浏览2798595次
文章归档