Last active
November 27, 2023 02:13
-
-
Save ryosms/fc7df05810d852f2cd9c37b34e934c1d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# how to use | |
# 1. download this file (e.g. ~/.git_alias) | |
# 2. include this file from .gitconfig | |
# [include] | |
# path = ~/.git_alias | |
[alias] | |
# Delete all merged local branch | |
cleanbranch = !"git switch develop && git pull --prune && git branch --merged | egrep -v '(accept|develop|production|master|main)' | xargs -n1 git branch -d" | |
cb = cleanbranch | |
# history | |
hist = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment