gitbutler icon indicating copy to clipboard operation
gitbutler copied to clipboard

Unexpected behavior of virtual branches that are re-applied after pushing

Open wesharper opened this issue 10 months ago • 1 comments

I like to push things semi-regularly just to make sure I have a backup of my work and because I'm really going all-in on GitButler and I have definitely borked some stuff locally trying to do too much.

In the process of pushing, unapplying, re-applying, swapping, etc. I've encountered this issue a handful of times: image

A bunch of commits exist locally AND on the remote branch. They are, for all intents and purposes, the exact same commits, but with separate timestamps. If I merge the upstream, I get a bunch of duplicate commits in the history. If I force push, it updates the timestamps for everything.

wesharper avatar Mar 27 '24 15:03 wesharper

Thanks for reporting! I'd hope this will get fixed naturally as #3121 gets implemented.

Byron avatar Apr 23 '24 10:04 Byron

hey, is there any workaround for this in the meantime? can I modify my flow somehow so that I don't end up in that state? I don't get why it happens only sometimes (but often)

vorou avatar May 30 '24 21:05 vorou

The new UI definitely makes things more clear. Although I haven't encountered this exact scenario with the new UI active. Will report back if I see improvements/issues.

wesharper avatar Jun 10 '24 20:06 wesharper

Feel free to re-open this issue if something comes up! Closing for now as it has been addressed in the recent commit list improvements. 🙏

mtsgrd avatar Jun 10 '24 21:06 mtsgrd