Git: Add grs.
This commit is contained in:
parent
1ed85b0f0f
commit
caeae2ace2
|
@ -126,6 +126,12 @@
|
|||
git apply --index "''${@}"
|
||||
}
|
||||
|
||||
# Unstage changes.
|
||||
# Usage: grs <FILES>
|
||||
function grs() {
|
||||
git restore --staged "''${@}"
|
||||
}
|
||||
|
||||
# Run git garbage collection.
|
||||
function ggc() {
|
||||
git gc --aggressive --no-cruft --prune=now
|
||||
|
|
Loading…
Reference in a new issue