Closed adam-ce closed 1 year ago
Hello,
Yes, it's not a bug but rather a lack of alternative of options, it's part of this issue https://github.com/JetpackDuba/Gitnuro/issues/30
It's not something specific to this but to a big part of the daily errors the users may face. It requires some exception messages parsing (which is not ideal but the seems to be the only option) and provide a good error message accordingly.
I've got some examples designed in Figma for other common errors, here is an example:
I've referenced your message there to have the discussion in a single place.
Something else to add is that in some specific cases, the local branch may not be referencing the remote branch with the same name, as you can have multiple remotes. There is also the case where a local branch named X references a remote branch named Y, making things even harder.
Probably the first case should is the most relevant but both cases should be investigated.
Describe the bug you can't check out a branch via the remote handle visible in the tree, if it was checked out before, but is not up-to-date. An error pops up, saying "Ref branch_name already exists".
To Reproduce
Expected behavior
a text 'checkout origin/B' might be confusing as a menu entry (since the branch is already locally available, and might contain other commits). so therefore i would expect an entry saying 'checkout local branch and pull', or only 'checkout local branch'.
Desktop (please complete the following information):