gitbutlerapp / gitbutler

The GitButler version control client, backed by Git, powered by Tauri/Rust/Svelte
https://gitbutler.com
Other
12.35k stars 483 forks source link

Undoing a commit moves the changes back to the default branch, not to the branch the commit was undone from #4318

Open daniilS opened 1 month ago

daniilS commented 1 month ago

Version

0.5.596

Operating System

Windows

Distribution Method

msi (Windows)

Describe the issue

When you undo a commit, the changed files appear on the default branch, not on the branch that the commit belongs to.

How to reproduce

Expected behavior

The changes should return to the branch the commit belongs to

Relevant log output

No response

Byron commented 1 month ago

Thanks for reporting!

I used nightly v0.5.597, but couldn't reproduce the issue (on MacOS, if it matters) despite having followed to the letter, but couldn't reproduce it.

I could reproduce the issue with v0.5.597, it's important to use the undo button of the commit, not in the Project History.

Screenshot 2024-07-10 at 14 53 50
daniilS commented 1 month ago

Ah yes, should've specified which undo button I meant!