旺仔小糖

git config 2 years ago

git
712个字符
共有101人围观

config file: ~/.gitconfig

[user]
  name = scottxiong
  email = xxx@gmail.com

[url "ssh://git@github.com/"]
  insteadOf = https://github.com/
[color]
  branch = auto
  diff = auto
  status = auto
[color "branch"]
  current = yellow reverse
  local = yellow
  remote = green
[color "diff"]
  meta = yellow bold
  frag = magenta bold
  old = red bold
  new = green bold
[color "status"]
  added = yellow
  changed = green
  untracked = cyan
[alias]
  st = status -uno
  cm = commit
  br = branch
  co = checkout
  df = diff
  lg = log -p
  lgg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
  f = fetch