From a340fd2d8dcd5306f0924ffac7a7d283f3786319 Mon Sep 17 00:00:00 2001 From: Soispha Date: Fri, 29 Dec 2023 21:06:56 +0100 Subject: feat(hm/conf/git): Update git defaults and add wip command --- hm/soispha/conf/git/default.nix | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'hm/soispha/conf/git/default.nix') diff --git a/hm/soispha/conf/git/default.nix b/hm/soispha/conf/git/default.nix index 9fa9df44..6cd9cd0e 100644 --- a/hm/soispha/conf/git/default.nix +++ b/hm/soispha/conf/git/default.nix @@ -92,11 +92,16 @@ in { remotes = "remote --verbose"; day = "!git log --stat --since '1 day ago' --author $(git config user.email)"; unpush = "push --force-with-lease origin HEAD~1:${config.programs.git.extraConfig.init.defaultBranch}"; + wip = "!git add . && git commit --amend && git push --force-with-lease"; }; extraConfig = { core = { excludesFile = "${gitIgnoreFile}"; }; + rebase = { + autoStash = true; + autoSquash = true; + }; init = { defaultBranch = "prime"; }; -- cgit 1.4.1