[ GIT ] GIT tip : A simple .gitconfig file

Posted atom blog

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[ GIT ] GIT tip : A simple .gitconfig file相关的知识,希望对你有一定的参考价值。

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 = [email protected]
[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的主要内容,如果未能解决你的问题,请参考以下文章

Git 安装和使用Tips

Git 安装和使用Tips

常用的Git Tips

text Git Tips - Mini-trucos de Git para facilitarme la tarea

Git tips: 合并 commit 保持分支干净整洁

git 的一些小 tips