Skip to content

Instantly share code, notes, and snippets.

@maxfunke
Last active March 13, 2024 02:21
Show Gist options
  • Save maxfunke/dad26a6cae6d246f2e1eba7bd25abe46 to your computer and use it in GitHub Desktop.
Save maxfunke/dad26a6cae6d246f2e1eba7bd25abe46 to your computer and use it in GitHub Desktop.
.gitconfig aliases (adog, log, status)
[alias]
adog = log --all --decorate --oneline --graph
lg2 = 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(bold yellow)%d%C(reset)' --all
lg1 = 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 yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
lg = !"git lg1"
st = status --short
b = branch -vv
[core]
editor = code --wait
autocrlf = input
[merge]
tool = p4merge
[mergetool "vscode-mergetool"]
cmd = code --wait
[mergetool "p4merge"]
path = C:\\Program Files\\Perforce\\p4merge.exe
[diff]
tool = p4merge
[difftool]
prompt = false
[difftool "vscode-difftool"]
cmd = code --wait --diff $LOCAL $REMOTE
[difftool "p4merge"]
path = C:\\Program Files\\Perforce\\p4merge.exe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment