]> git.rmz.io Git - dotfiles.git/commitdiff
git: add alias to remove `.orig` files
authorSamir Benmendil <samir.benmendil@ultrahaptics.com>
Tue, 29 Jan 2019 07:28:14 +0000 (07:28 +0000)
committerSamir Benmendil <samir.benmendil@ultrahaptics.com>
Tue, 29 Jan 2019 07:28:14 +0000 (07:28 +0000)
git/config

index 28e18e4c60974a901747fda1daa3475b270660ac..585b2cda8a43b67a1e1929f37a137cfa364f1c60 100644 (file)
@@ -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"