Newly created branch not visible in "Switch branches" dropdown in create branch modal #192716
Replies: 2 comments 2 replies
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
|
This doesn’t look like a backend bug, but rather a UI caching issue. The branch is actually created successfully (since it appears in the branch list), but the “Switch branches” dropdown inside the modal seems to be working with a cached snapshot and doesn’t refresh after creating a new branch. The fact that a full page refresh makes the branch appear supports this — it suggests the modal isn’t re-fetching updated branch data. You could also verify this by: checking the branch via git fetch locally So the behavior is real, but it’s more of a frontend refresh/state issue than a functional bug with branch creation itself. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
🏷️ Discussion Type
Bug
Body
When creating a new branch via the "New branch" modal, the branch is successfully created. However, if I close the modal and reopen it, the newly created branch does not appear in the "Switch branches" search dropdown.
Steps to reproduce:
Go to repository branches page

1. Click "New branch"
Expected behavior:
The newly created branch should appear in the dropdown search.
Actual behavior:
It shows "Nothing to show" even though the branch exists and is visible in the branch list below.
Workaround:
Refreshing the page makes the branch appear.
Environment:
Browser: Chrome
OS: Windows
Beta Was this translation helpful? Give feedback.
All reactions