Skip to content

Instantly share code, notes, and snippets.

@Kassaila
Last active May 26, 2022 09:13
Show Gist options
  • Select an option

  • Save Kassaila/fc93109c0cb50898dbcb476878b15995 to your computer and use it in GitHub Desktop.

Select an option

Save Kassaila/fc93109c0cb50898dbcb476878b15995 to your computer and use it in GitHub Desktop.
Git aliases

Git aliases

git grog

Log graphical status

git config --global alias.grog 'log --graph --abbrev-commit --decorate --all --format=format:"%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(dim white) - %an%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n %C(white)%s%C(reset)"'

git sorb

Log sorting branches by last commit and last commit information

git config --global alias.sorb "for-each-ref --sort=-committerdate refs/heads/ --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(color:red)%(objectname:short)%(color:reset) - %(contents:subject) - %(authorname) (%(color:green)%(committerdate:relative)%(color:reset))'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment