zoukankan      html  css  js  c++  java
  • 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
  • 相关阅读:
    线程池ThreadPoolExecutor
    常用引擎+存储过程
    在浏览器中输入www.baidu.com后执行的全过程
    win端git连接私服仓库+上传本地项目+从服务器下载文件到win
    TCP的三次握手和四次挥手+TCP和UDP的区别
    2017网易---计算糖果
    ubuntu下wireshark+scapy+tcpreply
    网易2017---数列还原
    2017网易---藏宝图
    2017网易---不要二
  • 原文地址:https://www.cnblogs.com/fairyin/p/4449537.html
Copyright © 2011-2022 走看看