aboutsummaryrefslogtreecommitdiffstats
path: root/home-dots/dot-gitconfig
diff options
context:
space:
mode:
Diffstat (limited to 'home-dots/dot-gitconfig')
-rw-r--r--home-dots/dot-gitconfig4
1 files changed, 4 insertions, 0 deletions
diff --git a/home-dots/dot-gitconfig b/home-dots/dot-gitconfig
index cacdd3e..de999cf 100644
--- a/home-dots/dot-gitconfig
+++ b/home-dots/dot-gitconfig
@@ -23,6 +23,10 @@
[diff]
algorithm = histogram
+# https://docs.gitlab.com/ee/user/project/merge_requests/merge_request_troubleshooting.html#check-out-locally-by-adding-a-git-alias
+[alias]
+ mr = !sh -c 'git fetch $1 merge-requests/$2/head:mr-$1-$2 && git checkout mr-$1-$2' -
+
[sendemail]
smtpEncryption = tls
smtpServer = mail.oscarnajera.com