From 8a0402c21fbcbbeef73f7a650c8b87d47390fccb Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Tue, 29 Jan 2019 07:28:14 +0000 Subject: [PATCH] git: add alias to remove `.orig` files --- git/config | 1 + 1 file changed, 1 insertion(+) diff --git a/git/config b/git/config index 28e18e4..585b2cd 100644 --- a/git/config +++ b/git/config @@ -43,3 +43,4 @@ verbose = true [alias] remote-to-ssh = "!f(){ local r=$1; git remote set-url $r $(git remote get-url $r | sed -r 's,https?://([^/]+),git@\\1:,'); };f" + clean-orig = "!git ls-files -o --exclude-standard | grep '\\.orig$' | xargs -n100 -p rm" -- 2.48.1