**Describe the bug** If you change branch while pushing a branch, it is possible that the old and new branch are now linked to the *same branch* on the remote. I've hit this four times so far, sometimes with severe unexpected implications (pushing commits publicly that I never intended to). **To Reproduce** Steps to reproduce the behavior: 1. Create a new branch from a branch that already has an upstream set 2. Push the new branch 3. While the push operation is in progress, switch back to the previous branch 4. Observe broken configuration **Screenshots** https://github.com/user-attachments/assets/fa9bb0be-458e-401b-8a45-d734a6df6591 **Version info:** ```csharp ❯ lazygit --version commit=, build date=, build source=homebrew, version=HEAD-40d6800, os=darwin, arch=arm64, git version=2.48.1 ❯ git --version git version 2.48.1 ```