summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gitconfig3
1 files changed, 3 insertions, 0 deletions
diff --git a/gitconfig b/gitconfig
index ca5555b..f9a1ab5 100644
--- a/gitconfig
+++ b/gitconfig
@@ -37,13 +37,16 @@
repacker = !git repack -a -d -f --depth=300 --window=300 --window-memory=1g
optimize = !git pruner; git repacker; git prune-packed
sm = submodule
+ # submodule remove
smrm = "!f(){\
git submodule deinit -f \"$1\";\
rm -rf .git/modules/\"$1\";\
git rm -f \"$1\";\
}; f"
+ # dated commit
dcm = "!f(){ git commit -m \"$(date --iso-8601=seconds)\"; }; f"
+ # dated push
dps = "!f(){ git dcm; git push \"$@\"; }; f"
ident = "!f(){\