X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/ad0dc18105248c38946b4a4605d39b57688d28b4..refs/heads/uh-backup:/git/config diff --git a/git/config b/git/config index 801601a..04e0405 100644 --- a/git/config +++ b/git/config @@ -1,6 +1,6 @@ [user] name = Samir Benmendil - email = me@rmz.io + email = samir.benmendil@ultrahaptics.com [color] branch = auto status = auto @@ -20,7 +20,7 @@ smtpserver = /usr/bin/msmtp smtpuser = [mergetool "fugitive"] - cmd = vim -f -c \"Gvdiff\" \"$MERGED\" + cmd = vim -f -c \"Gdiffsplit!\" \"$MERGED\" [merge] tool = fugitive defaultToUpstream = true @@ -41,3 +41,11 @@ rebase = preserve [commit] 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" +[filter "lfs"] + clean = git-lfs clean -- %f + smudge = git-lfs smudge -- %f + process = git-lfs filter-process + required = true