Guest User

Untitled

a guest
Feb 19th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. [alias]
  2. unstage = reset HEAD
  3. undo-commit = reset --soft HEAD^
  4. poh = push origin HEAD
  5. pulloh = pull origin HEAD
  6. set-upstream = !git branch --set-upstream-to=origin/`git symbolic-ref --short HEAD`
  7. lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
  8. # one-line log
  9. l = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=short
  10. a = add
  11. ap = add -p
  12. c = commit --verbose
  13. ca = commit -a --verbose
  14. cm = commit -m
  15. cam = commit -a -m
  16. m = commit --amend --verbose
  17. d = diff
  18. ds = diff --stat
  19. dc = diff --cached
  20. s = status -s
  21. co = checkout
  22. cob = checkout -b
  23. # list branches sorted by last modified
  24. b = "!git for-each-ref --sort='-authordate' --format='%(authordate)%09%(objectname:short)%09%(refname)' refs/heads | sed -e 's-refs/heads/--'"
  25. # list aliases
  26. la = "!git config -l | grep alias | cut -c 7-"
  27. ac = !git add . && git commit -am
Add Comment
Please, Sign In to add comment