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
  • 相关阅读:
    CentOS下编译安装hping3
    ping命令的几个简单使用
    安装CPqD/ofdissector遭遇的错误
    ldconfig报错 :libstdc++.so.6.0.18-gdb.py不是一个elf文件
    sudo source /etc/profile 提示找不到source命令
    linux下安装pkg-config时遇到"glib-2.0>=2.16"的错
    CentOS6.2编译安装codelite5.3
    Socket构造但不连接
    linux c——dup( )和dup2( )函数详解(转)
    Linux中重定向
  • 原文地址:https://www.cnblogs.com/fairyin/p/4449537.html
Copyright © 2011-2022 走看看