From ac3c53cda7c611ed10a86fa9e57983317d42b73e Mon Sep 17 00:00:00 2001 From: Jan Jastrow Date: Sun, 11 Aug 2024 01:27:15 +0200 Subject: [PATCH] Upgrade gitconfig --- gitconfig | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/gitconfig b/gitconfig index 6aacf5b..f1fa63e 100644 --- a/gitconfig +++ b/gitconfig @@ -9,14 +9,22 @@ [init] defaultBranch = main [alias] + a = add br = branch c = commit - co = checkout ca = c -a - p = pull - l = log --all --color --graph --pretty=format:'%Cred%h%Creset %G?%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit # Colorful and easy to read log + co = checkout conflict = diff --name-only --diff-filter=U + d = diff hash = !git rev-parse HEAD | cut -c 1-8 + l = log --all --color --graph --pretty=format:'%Cred%h%Creset %G?%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit # Colorful and easy to read log + last = log -1 HEAD --stat + p = pull + rv = remote -v + se = !git rev-list --all | xargs git grep -F + st = status -sb undo = !f() { git reset --hard $(git rev-parse --abbrev-ref HEAD)@{${1-1}}; }; f [branch] sort = -committerdate +[help] + autocorrect = 30