zoukankan      html  css  js  c++  java
  • .gitconfig配置文件

    git的配置文件分为三个层级:

    1.对所有用户,位于/etc/gitconfig

    2.对于当前用户,位于~/.gitconfig

    3.对于该git仓,位于.git/config

    建议配置当前用户的.gitconfig文件

    分享一下作者的配置文件:

     1 [alias]
     2     amend = commit --amend
     3     amendf = commit --amend --no-edit
     4     br = branch
     5     ct = commit
     6     co = checkout
     7     cp = cherry-pick
     8     df = diff
     9     ds = diff --staged
    10     l = log
    11     lg = log --graph --all --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(bold white)— %an%C(reset)%C(bold yellow)%d%C(reset)' --abbrev-commit --date=relative
    12     lp = log --pretty=oneline
    13     sa = stash apply
    14     sh = show
    15     ss = stash save
    16     st = status
    17 
    18 [color]
    19     ui = auto
    20 [color "branch"]
    21     current = yellow reverse
    22     local = yellow
    23     remote = green
    24 [color "status"]
    25     added = yellow
    26     changed = green
    27     untracked = cyan
    28 [color "diff"]
    29     meta = yellow
    30     frag = magenta bold
    31     commit = yellow bold
    32     old = red bold
    33     new = green bold
    34     whitespace = red reverse
    35 [color "diff-highlight"]
    36     oldNormal = red bold
    37     oldHighlight = red bold 52
    38     newNormal = green bold
    39     newHighlight = green bold 22
    40 
    41 [user]
    42     email = alvin@qq.com
    43     name = alvin
  • 相关阅读:
    工作中的体悟和经验
    java中List的toArray方法
    Arthas干货总结
    内部类访问外部类的方法
    PriorityBlockingQueue 源码分析
    ArrayBlockingQueue 源码解析
    Kafka 读书笔记--日志索引
    Mybatis源码解析之--谈谈${}
    Mybatis源码分析之--浅析ResultSetHandler
    linux命令--ll
  • 原文地址:https://www.cnblogs.com/live-program/p/11032130.html
Copyright © 2011-2022 走看看