Skip to content

UI Pull Overwtites Modified Files #1307

@JohnsonLo00

Description

@JohnsonLo00

Version: 1.11.0

This issue could be reproduced as follows:

  1. Create changes locally, reaching out modified files, whether staged or unstaged;
  2. Do not commit these modified files;
  3. Ensure there are also changes in the remote repository, which differ from those in the local repository;
  4. Run the UI Pull.

In my experience, as the modified files exist locally, running UI Pull just overwrote all these files without any return, no matter whether there is conflict between local and remote changes.

Basically in Git system, running git pull in similar case would raise error with message like

error: Your local changes to the following files would be overwritten by merge:
        ...
Please commit your changes or stash them before you merge.
Aborting

Yep, git stash is the solution for that. Whereas as the #1267 mentioned, lg2's commands works seperately to git UI, and there is no options related to stash in git UI.

At that stage, I supposed to the error above to be returned and then tried clicking the UI Pull, and finally met with such a problem.

By the way, lg2 reflog cannot be called in built-in terminal, neither. So now I have no idea what is this issue about and how to recover those missing modified files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcritical

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions