Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. [alias]
  2. ch = checkout
  3. br = branch
  4. st = status
  5. #############
  6. brm = branch --merged
  7. brnm = branch --no-merged
  8.  
  9. #############
  10. lsf = "!git ls-files | grep -i"
  11. ls = ls-files
  12.  
  13. ### lsac= ls all-files in commit <branch>|<commit> (guid)
  14. ### ls-tree - List the contents of a tree object; includes UUID info
  15. ### --name-only
  16. lst = ls-tree --name-only -r
  17.  
  18.  
  19. #### lsc = list <in commit> (show files involved in that commit)
  20. #### functionally same as :
  21. ###### lfc = diff-tree --no-commit-id --name-only -r
  22. ########### alternate command:
  23. ###### git show --pretty="format:" --name-only <branch>
  24. lsc = "!f() { git diff-tree --no-commit-id --name-only -r $1;}; f"
  25.  
  26. ############# whois takes a name or email address of author
  27. whois = "!sh -c 'git log -i -1 --pretty=\"format:%an <%ae>\n\" --author=\"$1\"' -"
  28. ############# takes a commit #
  29. whatis = show -s --pretty='tformat:%h (%s, %ad)' --date=short
  30.  
  31. #############
  32.  
  33. lol = log --oneline
  34. oneline = log --oneline
  35. lognames = log --name-only
  36. logstatus = log --name-status
  37. graph = log --graph --oneline --decorate --all #log graph
  38. tree = log --graph --oneline --all --pretty=format:'%C(yellow)%h%Creset -%Cred%d%Creset %s %Cgreen%cr%Creset %Cblue%an%Creset %gn'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement