Skip to content

[Feature] Create new branch without touching existing changes #1135

@SebastianSchumann

Description

@SebastianSchumann

If you want to create a new branch, there are only two options for dealing with existing changes:

  • Stash & Reapply
  • Discard

If you want to keep your changes, you must therefore select “Stash & Reapply”. However, this changes the assignments to staged and unstaged.

After this operation, all changed files from staged are in unstaged. However, it is possible that changes were made to one and the same file in staged and unstaged. If you want to create a branch to commit the staged files, they can no longer be separated from the unstaged files.

A “do nothing with the changes” option would be nice.

The branch can simply be created with the following command:

git checkout -b “<branch-name>

This command leaves the local changes untouched.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions