Add a stash-working alias from https://stackoverflow.com/a/60875082/12293760
diff --git a/src/apps/personal/git.nix b/src/apps/personal/git.nix
index 4cdd2ee..b3cd59c 100644
--- a/src/apps/personal/git.nix
+++ b/src/apps/personal/git.nix
@@ -16,6 +16,12 @@
aliases = {
recommit = "!git commit -eF $(git rev-parse --git-dir)/COMMIT_EDITMSG";
+ stash-working = ''
+ !f() {
+ git commit --quiet --no-verify -m \"temp for stash-working\" && \
+ git stash push \"$@\" && \
+ git reset --quiet --soft HEAD~1;
+ }; f''; # https://stackoverflow.com/a/60875082/12293760
};
extraConfig = {