## Description Similar to https://github.com/jupyterlab/jupyterlab-git/issues/1354, but the steps to reproduce the issue may be slightly different. ## Reproduce 1. Create a blank repo on GitHub (no README, keep it empty) 2. Clone the repo locally 3. Open JupyterLab 4. From the JupyterLab git UI, create a new branch from `main`  ## Expected behavior It should be possible to create a new branch directly after closing the git repo. ## Context - JupyterLab 4.4.2 - JupyterLab Git: 0.51.1