diff --git a/.gitconfig b/.gitconfig
index 57eba44d295433e99c8f4b8c03932c7a5d4d843f..018701abbeb70034ae56f00cafa51aaf35554442 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]