about summary refs log tree commit diff stats
path: root/hm/soispha/conf/git/default.nix
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-12-29 21:06:56 +0100
committerSoispha <soispha@vhack.eu>2023-12-29 21:06:56 +0100
commita340fd2d8dcd5306f0924ffac7a7d283f3786319 (patch)
tree32e408c92fcbe09491837217b9366407ce718534 /hm/soispha/conf/git/default.nix
parentfix(hm/conf/zsh): Remove my prompt implementation (diff)
downloadnixos-config-a340fd2d8dcd5306f0924ffac7a7d283f3786319.tar.gz
nixos-config-a340fd2d8dcd5306f0924ffac7a7d283f3786319.zip
feat(hm/conf/git): Update git defaults and add wip command
Diffstat (limited to '')
-rw-r--r--hm/soispha/conf/git/default.nix5
1 files changed, 5 insertions, 0 deletions
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";
       };