question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No create a new branch button

See original GitHub issue

Description

No obvious button to create a new branch

Version

GitHub Desktop version: 1.0.0

OS version: MacOS 10.12.6

Steps to Reproduce

  1. Add a repo
  2. See that there is no button to create a new branch.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
niikcommented, Sep 27, 2017

Let’s try adding a button using the secondary button style in line with the filter text.

screen shot 2017-09-27 at 15 24 59 screen shot 2017-09-27 at 15 50 52

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.

screen shot 2017-09-27 at 15 39 25

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.

1reaction
vojtech-dobescommented, Sep 20, 2017

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found