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

Commit is lost when switching from the local branch to the origin branch #1352

Open
jtpio opened this issue Oct 10, 2024 · 0 comments
Open
Labels

Comments

@jtpio
Copy link
Member

jtpio commented Oct 10, 2024

Description

Using the branches UI to switch between branches:

image

Seems to be reverting local changes.

Reproduce

  1. Clone a repo
  2. Make a change to a file
  3. Stage, commit
  4. Switch to the corresponding remote branch, for example origin/main
  5. Switch back to the local branch
  6. Changes are gone (the commit disappeared)
jupyterlab-git-branch-switch-issue.webm

Expected behavior

I would expect to be able to temporarely switch to the remote branch, and then switch back to the local branch and see the new changes again.

Context

  • JupyterLab: 4.2.5
  • Python package version: 0.50.1
  • Extension version: 0.50.1
  • Git version:
  • Operating System and its version:
@jtpio jtpio added the bug label Oct 10, 2024
@jtpio jtpio changed the title Commit is lost when switching to the origin branch Commit is lost when switching from the local branch to the origin branch Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant