Skip to content

Instantly share code, notes, and snippets.

@TheBigAleski
Last active January 19, 2023 10:12
Show Gist options
  • Save TheBigAleski/44a051185f2320b265363526b6e88954 to your computer and use it in GitHub Desktop.
Save TheBigAleski/44a051185f2320b265363526b6e88954 to your computer and use it in GitHub Desktop.
Bash init
# Git aliases
git config --global alias.lol 'log --pretty="format:%C(auto,yellow)%h %C(auto,cyan)%>(12,trunc)%ar %C(auto,green)%aN %C(auto,reset)%s%C(auto,red)% gD% D" -n25'
git config --global alias.st status
git config --global alias.brhist 'branch -a --sort=-committerdate --format="%(HEAD) %(color:red)%(refname:short)%(color:reset) - %(color:yellow)%(objectname:short)%(color:reset) - %(contents:subject) - %(color:green)%(authorname)%(color:reset) (%(color:cyan)%(committerdate:relative)%(color:reset))"'
git config --global core.editor 'code --wait'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment