From ee064059dd91c1ea331b2ce2eeaa484f3fb30d5a Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Mon, 13 May 2024 10:04:45 -0400 Subject: [PATCH] Add an alias for fixing large amounts of dates --- configs/git/.gitconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configs/git/.gitconfig b/configs/git/.gitconfig index 1c53b2d..1f7e472 100644 --- a/configs/git/.gitconfig +++ b/configs/git/.gitconfig @@ -45,8 +45,9 @@ # 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 + # For working with dates author-date = log -1 --pretty="%aD" + set-all-commit-dates-to-author-dates = rebase --committer-date-is-author-date --root # For working with git notes pull-notes = fetch origin "refs/notes/*:refs/notes/*"