From c1d021369848b0ae0d15facacd6afff35188f827 Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Mon, 8 May 2017 11:18:05 +0300
Subject: [PATCH] - Set autosquash by default. - Added autosquash Git alias.

---
 .gitconfig | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/.gitconfig b/.gitconfig
index 57eba44..018701a 100644
--- a/.gitconfig
+++ b/.gitconfig
@@ -1,5 +1,6 @@
 [alias]
     amend = commit --amend
+    autosquash = !GIT_SEQUENCE_EDITOR=true git rebase -i --autosquash
     bull = submodule update --remote
     clear = clean -fdx
     dif = diff --color-words
@@ -36,7 +37,9 @@
     ff = false
 [push]
     followTags = true
-	default = simple
+    default = simple
+[rebase]
+    autoSquash = true
 [receive]
     fsckObjects = true
 [tag]
-- 
GitLab