From fc41c51ec4adbea4264cdfa0ddb20590fd5afe98 Mon Sep 17 00:00:00 2001 From: Phil Pluckthun Date: Wed, 10 Jun 2026 07:34:20 +0000 Subject: [PATCH] Add git normalize-remotes alias --- home/base/git.nix | 1 + 1 file(s) changed, 1 insertion(s)(+), 0 deletion(s)(-) diff --git a/home/base/git.nix b/home/base/git.nix --- a/home/base/git.nix +++ b/home/base/git.nix @@ -118,6 +118,7 @@ glog = "log --pretty=longline --decorate --all --graph --date=relative"; base = "!f() { git cherry remotes/origin/HEAD HEAD | awk '/^\\+/ {print $2;exit}'; }; f"; journal = "!f() { git commit -a -m \"$(date +'%Y-%m-%d %H:%M:%S')\"; }; f"; get = "!f() { git clone \"git@github.com:$1.git\" \"$HOME/git/$1\" --no-single-branch --shallow-since=\"1 year ago\"; }; f"; + normalize-remotes = "!f() { for r in $(git remote); do git config remote.\"$r\".partialclonefilter blob:none && git config remote.\"$r\".promisor true && echo \"normalized $r\"; done; }; f"; }; commit.gpgSign = true; -- tangled.sh