diff --git a/home/program/bash/module/Git.nix b/home/program/bash/module/Git.nix index 0e3de69..0151f1e 100644 --- a/home/program/bash/module/Git.nix +++ b/home/program/bash/module/Git.nix @@ -126,6 +126,12 @@ git apply --index "''${@}" } + # Unstage changes. + # Usage: grs + function grs() { + git restore --staged "''${@}" + } + # Run git garbage collection. function ggc() { git gc --aggressive --no-cruft --prune=now