Guest User

Untitled

a guest
Apr 25th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. [alias]
  2. st = status
  3. co = checkout
  4. ci = commit
  5. br = branch
  6. sub = submodule
  7. cl = clean -f -x -d -e **/.idea -e **/.vscode
  8. lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
  9. prune-local = "!f() { \
  10. git remote prune origin; \
  11. if [ $# -eq 0 ]; then \
  12. git branch -vv | grep 'origin/.*: gone]' | awk '{print $1}' | xargs git branch -d; \
  13. elif [ "$1" = "--dry-run" ] || [ "$1" = "-n" ]; then \
  14. echo "Would delete the following branches..."; echo; \
  15. git branch -vv | grep 'origin/.*: gone]' | awk '{print $1}'; \
  16. elif [ "$1" = "--force" ] || [ "$1" = "-f" ]; then \
  17. git branch -vv | grep 'origin/.*: gone]' | awk '{print $1}' | xargs git branch -D; \
  18. fi \
  19. }; f"
Add Comment
Please, Sign In to add comment