Guest User

Untitled

a guest
Nov 15th, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. #Aliases in the .gitconfig file
  2. [alias]
  3. a = add
  4. ac = !git add . && git commit -m
  5. al = "!git config -l | grep alias | cut -c 7-"
  6. amend = !git add -A && git commit --amend --no-edit
  7. br = branch
  8. c = commit
  9. cl = clone
  10. co = checkout
  11. cp = cherry-pick
  12. f = fetch
  13. info = remote show origin
  14. l = log --oneline --graph --all
  15. last = log -1 HEAD
  16. ll = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=short --graph --all
  17. lr = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative --all
  18. m = merge
  19. n = !git checkout -b
  20. p = !git push origin $(git rev-parse --abbrev-ref HEAD)
  21. pl = pull
  22. r = reset
  23. s = status
  24. unstage = reset --soft HEAD^
  25. unstageh = reset --hard HEAD^
  26.  
  27.  
  28. #Aliases in the bash-shell
  29. #edit .bashrc file
  30. alias g='git'
  31. alias go='git checkout'
  32. To apply changes to bash-shell need to log out and log back in, or use command source ~/.bashrc
Add Comment
Please, Sign In to add comment