Changing branches in git silently discards changes


If you make a change in a file in one branch in a cloned git repo project, then switch to another branch via the file view, the changes in the current branch will be silently discarded when the other branch is checked out.

A warning about uncommitted changes (or perhaps something like an automated stash) would be a welcome fix.



Hi Stonehippo :wave:

Thank you for reporting. This functionality was supposed to prompt an alert in the same way we do when pulling and pushing from remote so this is a bug. We’ll fix it for the next release.