]> git.rmz.io Git - dotfiles.git/commitdiff
git: interactive rebase when pulling, except master/develop
authorSamir Benmendil <samir.benmendil@ultrahaptics.com>
Mon, 15 May 2017 09:56:44 +0000 (10:56 +0100)
committerSamir Benmendil <samir.benmendil@ultrahaptics.com>
Mon, 15 May 2017 09:56:44 +0000 (10:56 +0100)
master and develop branches should try to preserve merges when rebasing.

Now this is not ideal because the branch names are hard-coded, if I
contribute to a project that names their main branch `dev` it will
default to `interactive` :/

git/config

index 2892abba270bfc37bb2f1af588dfdadddbea7d0c..e7e4541b522592ef4444c6e512b483d2533d74c2 100644 (file)
@@ -33,3 +33,9 @@
        submodulesummary = true
 [rerere]
        enabled = true
+[pull]
+       rebase = interactive
+[branch "master"]
+       rebase = preserve
+[branch "develop"]
+       rebase = preserve