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
  • 相关阅读:
    iOS 图片加载
    viewController 生命周期 转
    @import和@class的区别
    git 使用总结
    iOS开发 关于property的简单总结
    Swift-6-函数
    Swift-5-流程控制
    Swift-4-数组和字典
    Swift-3-字符串和字符
    Swift-2-基本操作符
  • 原文地址:https://www.cnblogs.com/live-program/p/11032130.html
Copyright © 2011-2022 走看看