Open
Description
As noticed in #1352, the git checkout
command run when clicking on a remote branch uses the -B
flag, which can be quite disruptive as it implies forcing the switch to the branch: https://git-scm.com/docs/git-checkout#Documentation/git-checkout.txt--Bltnew-branchgt
jupyterlab-git/jupyterlab_git/git.py
Line 1141 in da4710f
For now this was mitigated in #1366 with the addition of a confirmation dialog, to warn users of potential data loss.
It could however be interesting to still be able to check out remote branches via the UI, and be able to switch back to a local branch, without losing data, and similar to the workflow available via the git
command directly.
Metadata
Metadata
Assignees
Labels
No labels