From 3f64cbafc10b8bd6b0e64f44e0fdb4feaf00858c Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Sun, 12 May 2024 09:58:25 -0400 Subject: [PATCH] Add aliases for notes --- configs/git/.gitconfig | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/configs/git/.gitconfig b/configs/git/.gitconfig index 6621077..1c53b2d 100644 --- a/configs/git/.gitconfig +++ b/configs/git/.gitconfig @@ -45,11 +45,19 @@ # Un-fuck a branch that had a bit too much tinkering fix-recreated-branch = reset --hard @{u} + # Get the date a specific commit was authored + author-date = log -1 --pretty="%aD" + + # For working with git notes + pull-notes = fetch origin "refs/notes/*:refs/notes/*" + push-notes = push origin "refs/notes/*:refs/notes/*" + # Lazy macros fa = fetch --all pa = pull --all c = commit aa = add . + rebase-ch-i = rebase --reapply-cherry-picks -i [filter "lfs"] clean = git-lfs clean -- %f