Skip to content

New branch -> "Check out after create" checkbox's persistance is frustrating #2702

@dracan

Description

@dracan

When creating a new branch the "Check out after create" checkbox remembers the state from the last time you did it. This has multiple times caused me to accidentally commit changes to the main branch. For example, consider this scenario...

  • As a one-off, I want to create a new branch, but not switch to it -> so I uncheck that box to create.
  • Given this doesn't happen too often, the next time I'm creating a branch, I don't even think about this check box state - and just type the branch name and hit enter. In my head, I think I'm in the branch, but I'm actually still on main.
  • I continue my work, and commit the changes. Result is that the commit is now in main, not on my feature branch.

I'd argue that most people are going to want it to be defaulted to checked.
For the odd time that you need to uncheck it - it's most likely going to be a one-off, and not desired the next time you create a branch.

My suggestion would be to default it to checked all the time, and not persist from the last time you used the new branch dialogbox.
And also maybe add a setting to change the default state for those that don't want it to default to checked.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions