From b6687fe0273ccc7289be851970785e7f20cee553 Mon Sep 17 00:00:00 2001 From: Yax <1949284+kianby@users.noreply.github.com> Date: Thu, 27 Jan 2022 17:35:15 +0100 Subject: [PATCH] add git aliases: inbound, outbound and l (long format log) --- dot_gitconfig.tmpl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dot_gitconfig.tmpl b/dot_gitconfig.tmpl index c949814..03482e4 100644 --- a/dot_gitconfig.tmpl +++ b/dot_gitconfig.tmpl @@ -14,6 +14,12 @@ cm = checkout master cp = cherry-pick f = fetch -p + # Show incoming changes with upstream. + inbound = !git remote update --prune; git log ..@{upstream} + # Show outgoing changes with upstream. + outbound = log @{upstream}.. + # log long format + l = log --graph --topo-order --date=short --abbrev-commit --decorate --all --boundary --pretty=format:'%Cgreen%ad %Cred%h%Creset -%C(yellow)%d%Creset %s %Cblue[%cn]%Creset %Cblue%G?%Creset' m = merge nb = checkout -b p = push -u origin