Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [alias]
- st = status
- co = checkout
- ci = commit
- br = branch
- sub = submodule
- cl = clean -f -x -d -e **/.idea -e **/.vscode
- lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
- prune-local = "!f() { \
- git remote prune origin; \
- if [ $# -eq 0 ]; then \
- git branch -vv | grep 'origin/.*: gone]' | awk '{print $1}' | xargs git branch -d; \
- elif [ "$1" = "--dry-run" ] || [ "$1" = "-n" ]; then \
- echo "Would delete the following branches..."; echo; \
- git branch -vv | grep 'origin/.*: gone]' | awk '{print $1}'; \
- elif [ "$1" = "--force" ] || [ "$1" = "-f" ]; then \
- git branch -vv | grep 'origin/.*: gone]' | awk '{print $1}' | xargs git branch -D; \
- fi \
- }; f"
Add Comment
Please, Sign In to add comment