Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncommitted changes lost without warning if another branch is checked out with the context menu #1521

Open
jeremypw opened this issue Jan 25, 2025 · 1 comment · May be fixed by #1524
Open

Comments

@jeremypw
Copy link
Collaborator

What Happened?

Changed the current working branch before committing some changes. The branch switched to overwrote any changed files in the working directory or index. They were not restored on switching back to the original branch.

Steps to Reproduce

  1. Open a branch of a git project
  2. Make some (unwanted) changes
  3. Switch to another branch of the same project
  4. Not that the changes are lost without warning

Expected Behavior

At least a warning should be given with an option to back out before overwriting any uncommitted changes.

OS Version

7.x (Horus)

Session Type

Classic Session (X11, This is the default)

Software Version

Latest release (I have run all updates)

Log Output

Hardware Info

No response

@jeremypw
Copy link
Collaborator Author

Note that this does not happen if a New Branch is created - the uncommitted changes are persisted in the new branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant