Skip to contentSkip to conversation

git rebase -i doesn't respect rebase.autosquash

DISCUSSION Mike Doherty 2 participants 4 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

Hello,

In a git repo, I have rebase.autosquash enabled by default (in ~/.gitconfig), but whenever I do git rebase -i, that setting isn't respected. Is this a known bug, or am I misunderstanding what that setting is meant to do?

Thanks for your help,
-Mike Doherty

#1 lore raw
Quoted 6 lines · Mike Doherty

Hello,

In a git repo, I have rebase.autosquash enabled by default (in ~/.gitconfig), but whenever I do git rebase -i, that setting isn't respected. Is this a known bug, or am I misunderstanding what that setting is meant to do?

I also have rebase.autosquash enabled and it works for me. Does it autosquash as you expect if you pass '--autosquash' on the command line? Which version of Git are you running?

/Martin

#2 lore raw
Quoted 3 lines · Martin von Zweigbergk

I also have rebase.autosquash enabled and it works for me. Does it autosquash as you expect if you pass '--autosquash' on the command line? Which version of Git are you running?

Yes, it does. I'm using 1.7.0.4

-Mike

#3 lore raw
Quoted 6 lines · Mike Doherty
Quoted 3 lines · Martin von Zweigbergk

I also have rebase.autosquash enabled and it works for me. Does it autosquash as you expect if you pass '--autosquash' on the command line? Which version of Git are you running?

Yes, it does. I'm using 1.7.0.4

Ok, that explains it. The configuration was introduced in 1.7.3.

Regards,
Martin