From 4b858cc6863956449682075d62b89a75450d8c31 Mon Sep 17 00:00:00 2001 From: Julien Rosset Date: Tue, 27 Sep 2022 10:14:46 +0200 Subject: [PATCH] Git : ajout alias 'raz' --- gitconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/gitconfig b/gitconfig index 09e57f1..c1ac3ad 100644 --- a/gitconfig +++ b/gitconfig @@ -26,6 +26,7 @@ tg = "!f() { git tag -a $1 -m \"${2-$1}\"; }; f" pu = "!f() { git push && git push --tags; }; f" sm = "!f() { git pull && git merge ${2-$(git config --get custom.serverbranch.remote)}/${1} && git push; }; f" + raz = "!f() { git reset --hard && git clean -fd }; f" submodule-del = "!f() { git submodule deinit -d -- ${1}; rm -rf .git/modules/${1}; git rm -f ${1}; }; f" [core] editor = vim