Skip to content

Instantly share code, notes, and snippets.

@futerzak
Last active June 6, 2025 11:10
Show Gist options
  • Select an option

  • Save futerzak/d62a28bea0d77d9bb4b1deb0bdd8c4fd to your computer and use it in GitHub Desktop.

Select an option

Save futerzak/d62a28bea0d77d9bb4b1deb0bdd8c4fd to your computer and use it in GitHub Desktop.
git alias
# ~/.gitconfig file
[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