diff --git a/pkg/gui/branches_panel.go b/pkg/gui/branches_panel.go index 450ce87eb..3ffa1c24a 100644 --- a/pkg/gui/branches_panel.go +++ b/pkg/gui/branches_panel.go @@ -505,8 +505,8 @@ func (gui *Gui) handleNewBranchOffCurrentItem() error { prefilledName := "" if context.GetKey() == REMOTE_BRANCHES_CONTEXT_KEY { - // will set to the remote's existing name - prefilledName = item.ID() + // will set to the remote's branch name without the remote name + prefilledName = strings.SplitAfterN(item.ID(), "/", 2)[1] } return gui.prompt(promptOpts{