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

 

相关文章:

  • 2021-09-08
  • 2022-12-23
  • 2021-09-07
  • 2021-09-08
  • 2021-05-27
  • 2022-12-23
  • 2021-12-11
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-07
  • 2021-10-18
  • 2022-12-23
  • 2021-09-27
相关资源
相似解决方案