vscode-gitlens icon indicating copy to clipboard operation
vscode-gitlens copied to clipboard

Automatic stash when rebasing

Open WizardUli opened this issue 4 years ago • 4 comments

Intellij IDEA automatically stashes changes when going into an interactive rebase and unstashes them afterwards. This could make a nice GitLens feature.

It should probably be configurable but I see no reason why not have it on by default when the interactive rebase UI is enabled. Right now every little rewording, every little fixup requires executing git stash or pushing the stash button first and then running git unstash (there is no unstash button AFAIK) at the end which is sooo tedious.

WizardUli avatar Aug 22 '21 17:08 WizardUli

Would be also nice to have this feature when changing branch or pulling

AlexandreMarkus avatar Aug 25 '21 15:08 AlexandreMarkus

Add custom command for some operations should be better.

Onekki avatar Sep 08 '21 03:09 Onekki

Please add this as a setting. VS Code's git already allows us to do it :)

Lorite avatar Jan 11 '23 09:01 Lorite

Intellij IDEA is the best git manager in the world.

xpader avatar Jul 25 '24 02:07 xpader

It would be even better if this feature would play nice with git rerere, e.g., enable it by default and train the resolutions.

Blackhex avatar Feb 15 '25 13:02 Blackhex

Doesn't git config --global rebase.autoStash true already do that? Maybe leave out the global if the local project overrides it.

CTimmerman avatar Jun 19 '25 07:06 CTimmerman

Doesn't git config --global rebase.autoStash true already do that? Maybe leave out the global if the local project overrides it.

Only partially. Don't know the details how auto stash is implemented in Intellij IDEA but it works much better automatically resolving some trivial collisions under the hood.

Blackhex avatar Jul 05 '25 19:07 Blackhex