码迷,mamicode.com
首页 > 其他好文 > 详细

[ GIT ] GIT tip : A simple .gitconfig file

时间:2017-12-13 19:59:19      阅读:189      评论:0      收藏:0      [点我收藏+]

标签:body   rebase   -o   this   and   comm   with   ace   ash   

reference : http://fle.github.io/git-tip-a-simple-gitconfig-file.html

As several friends have asked me this, here is my ~/.gitconfig base file.

Nothing special, just a few aliases and some syntax highlighting :).

[user]
        name = Florent Lebreton
        email = florentlebreton@free.fr
[color]
        ui = auto

[color "branch"]
        current = yellow reverse
        local = yellow
        remote = green

[color "diff"]
        meta = yellow bold
        frag = magenta bold
        old = red bold
        new = green bold
        whitespace = red reverse

[color "status"]
        added = yellow
        changed = green
        untracked = cyan

[core]
        whitespace=fix,-indent-with-non-tab,trailing-space,cr-at-eol

[alias]
        st = status
        ci = commit
        br = branch
        co = checkout
        df = diff
        dc = diff --cached
        lg = log -p
        pr = pull --rebase
        gr = log --all --graph --decorate --oneline

 

[ GIT ] GIT tip : A simple .gitconfig file

标签:body   rebase   -o   this   and   comm   with   ace   ash   

原文地址:http://www.cnblogs.com/0616--ataozhijia/p/8034042.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!