Created
March 7, 2024 10:28
-
-
Save futerzak/d62a28bea0d77d9bb4b1deb0bdd8c4fd to your computer and use it in GitHub Desktop.
git alias
This file contains 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
[alias] | |
gone = "!f() { git fetch --all --prune; git branch -vv | awk '/: gone]/{print $1}' | xargs git branch -D; }; f" | |
lol = "log --graph --decorate --pretty=oneline --abbrev-commit" | |
lola = "log --graph --decorate --pretty=oneline --abbrev-commit --all --date=local" | |
lg1 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(auto)%d%C(reset)' --all | |
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(auto)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' | |
lg = lg1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment