No create a new branch button
See original GitHub issueDescription
No obvious button to create a new branch
Version
GitHub Desktop version: 1.0.0
OS version: MacOS 10.12.6
Steps to Reproduce
- Add a repo
- See that there is no button to create a new branch.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:3
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Cannot create branch in Github - Stack Overflow
You just type something into the field and it should say "create branch: [name] from 'master'" or similar, below the input field.
Read more >Create new branch option not visible - Visual Studio Feedback
Solution: open project setting->Repositories->select Repository->enter your account->check the permission-Create branch and ensure set it to ...
Read more >How to Create a New Branch in GitHub - Rewind
To create a new branch, go to the project page. You'll see the branch you're currently in listed at the top left—usually master...
Read more >New branch button not showing (#52190) · Issues - GitLab.org
In one of my projects that was forked from another project, I cannot see the button that lets me create a new branch...
Read more >How do I create a new branch in Git? - Tower Git Client
If you're using the Tower Git client, you can simply use drag and drop to create new branches (and to merge, cherry-pick, etc.):...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Let’s try adding a button using the secondary button style in line with the filter text.
We’ll go with text-only for this one and try to position it so that the left edge lines up with the foldout cliff above and with the same height as the text box.
In my mocks that translates to 61px wide but that might need tweaking once we get it in. Standard foldout margin otherwise and a single spacer (10px) between the filter textbox and the button.
Clicking on the button would be the exact same thing as
Branch -> New Branch
, i.e. it would open the new branch dialog except if there’s text in the filter text box we’d prefill the branch name in the new branch dialog with that.I know that there’s also been requests for automatically creating a branch after typing a branch name that doesn’t exist. That pattern is something we intentionally removed from the classic clients as we feel it has a very high likelihood of mistakenly created branches. That said I think we can do something to guide users onward while at the same time giving our “No Reposiory Found” blank slate a touch up.
I’m still not sure of the first-person voice here in
I can't find
but I think it’s still an improvement so let’s go with it for now until we figure out whether we want to use that style in the app or not.Clicking on the ‘Create New Branch’ button here would be the same as clicking on the
New
button.For the
<kbd>
elements here we’ll try a minimal amount of padding (1px), a standard rounding of 3px and a base border but we’ll increase the contrast on the border one notch to$gray-300
.I was also looking for way to do this in the app yesterday (how to create new branch) and taught by GitHub itself, I started to type new branch name in the search field in branches list hoping it would offer me creating that non-existent branch for me. I think it would be nice workflow and inline with how GitHub web app works.