.gitconfig 1.2 KB

123456789101112131415161718
  1. [alias]
  2. amend = commit --amend -a
  3. br = branch
  4. branch-cleanup = "!f() { git branch --merged ${1-master} | grep -v " ${1-master}$" | xargs -n 1 git branch -d; }; f"
  5. co = checkout
  6. ds = diff --staged
  7. di = diff
  8. fetchall = fetch -v --all
  9. #log-fancy = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(cyan)<%an>%Creset' --abbrev-commit --date=relative
  10. # With git >= 1.8.3 you can use %C(auto) for the branch decorator (%d)
  11. log-fancy = log --graph --pretty=format:'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr) %C(cyan)<%an>%Creset' --abbrev-commit --date=relative
  12. log-me = !UN=$(git config user.name)&& git log --author="\"$UN\"" --pretty=format:'%h %cd %s' --date=short
  13. log-nice = log --graph --decorate --pretty=oneline --abbrev-commit
  14. panic = !tar cvf ../git_panic.tar *
  15. st = status
  16. wdiff = diff --word-diff=plain
  17. lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(cyan)<%an>%Creset' --abbrev-commit --date=relative
  18. l = ! git lg -n25