From fc9ccdb901ddeb8c260efbc8c3f1091538eaefa5 Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Wed, 9 Feb 2022 21:55:02 +0200
Subject: [PATCH] Rewrite Git alias.

Runs `rebase -i` noninteractively for the whole history (since the
initial commit).
---
 .config/git/config | 1 +
 1 file changed, 1 insertion(+)

diff --git a/.config/git/config b/.config/git/config
index 388cb13..193871c 100644
--- a/.config/git/config
+++ b/.config/git/config
@@ -25,6 +25,7 @@
     pull-force = !git fetch && git reset --hard "$(git tracking)"
     pushes = !git remote | xargs -n1 git push
     retry = !cd "${GIT_PREFIX:-$PWD}" && git amend --no-edit . && git shove
+    rewrite = autorebase ':/Initial empty commit.'
     root = rev-parse --show-toplevel
     serve-git = daemon --reuseaddr --verbose --base-path=. --export-all ./.git
     serve-http = !git update-server-info && cd .git && python -m http.server 8080
-- 
GitLab