Skip to content

Instantly share code, notes, and snippets.

@aduh95
Created December 6, 2018 15:44
Show Gist options
  • Save aduh95/1cc87a1d86bfc43a60f6828724c1a32e to your computer and use it in GitHub Desktop.
Save aduh95/1cc87a1d86bfc43a60f6828724c1a32e to your computer and use it in GitHub Desktop.
File I use for my git config
[alias]
lcm = !"git log -1 --pretty=%s"
lg = !"git lg1"
lg1 = !"git lg1-specific --all"
lg2 = !"git lg2-specific --all"
lg3 = !"git lg3-specific --all"
lg1-specific = 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)'
lg2-specific = 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)'
lg3-specific = 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(bold cyan)(committed: %cD)%C(reset) %C(auto)%d%C(reset)%n'' %C(white)%s%C(reset)%n'' %C(dim white)- %an <%ae> %C(reset) %C(dim white)(committer: %cn <%ce>)%C(reset)'
[user]
email = duhamelantoine1995@gmail.com
name = Antoine du HAMEL
[core]
autocrlf = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment