text git别名

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text git别名相关的知识,希望对你有一定的参考价值。

[alias]
  a = add
  aa = add --all
  ap = add -p
  b = branch
  c = commit
  cm = commit -m
  cp = cherry-pick
  d = diff
  f = fetch
  fu = fetch upstream
  o = checkout
  ob = checkout -b
  ps = push
  psf = push -f
  pso = push origin
  psfo = push -f origin
  psu = push upstream
  psfu = push -f upstream
  pl = pull
  plo = pull origin
  plu = pull upstream
  pb = pull --rebase
  pbo = pull --rebase origin
  pbu = pull --rebase upstream
  r = remote
  rb = rebase
  rba = rebase --abort
  rbc = rebase --continue
  rbi = rebase --interactive
  rbih = "!r() { git rebase -i HEAD~$1; }; r"
  rbs = rebase --skip
  s = status
  sl = stash list
  sw = stash show
  fixup = commit --amend -C HEAD
  undo-commit = reset --mixed HEAD^
  # Find commits by commit message
  fm = "!f() { git log --pretty=format:'%C(yellow)%h  %Cblue%ad  %Creset%s%Cgreen  [%cn] %Cred%d' --decorate --date=short --grep=$1; }; f"

以上是关于text git别名的主要内容,如果未能解决你的问题,请参考以下文章

text git别名

text 常用git命令的别名

text 有用的git别名

text git cli的别名图:]

text Git别名,用于显示插入和删除的总数。

打开git安装文件夹的git别名