{"record":{"id":"603abbe287429b74","repo":"jesseduffield/lazygit","slug":"you-need-to-install-git-flow-and-enable-it-in-this","errorCode":null,"errorMessage":"You need to install git-flow and enable it in this repo to use git-flow features","messagePattern":"You need to install git-flow and enable it in this repo to use git-flow features","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"pkg/gui/controllers/git_flow_controller.go","lineNumber":50,"sourceCode":"\t}\n}\n\nfunc (self *GitFlowController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding {\n\tbindings := []*types.Binding{\n\t\t{\n\t\t\tKeys:        opts.GetKeys(opts.Config.Branches.ViewGitFlowOptions),\n\t\t\tHandler:     self.withItem(self.handleCreateGitFlowMenu),\n\t\t\tDescription: self.c.Tr.GitFlowOptions,\n\t\t\tOpensMenu:   true,\n\t\t},\n\t}\n\n\treturn bindings\n}\n\nfunc (self *GitFlowController) handleCreateGitFlowMenu(branch *models.Branch) error {\n\tif !self.c.Git().Flow.GitFlowEnabled() {\n\t\treturn errors.New(\"You need to install git-flow and enable it in this repo to use git-flow features\")\n\t}\n\n\tstartHandler := func(branchType string) func() error {\n\t\treturn func() error {\n\t\t\ttitle := utils.ResolvePlaceholderString(self.c.Tr.NewGitFlowBranchPrompt, map[string]string{\"branchType\": branchType})\n\n\t\t\tself.c.Prompt(types.PromptOpts{\n\t\t\t\tTitle: title,\n\t\t\t\tHandleConfirm: func(name string) error {\n\t\t\t\t\tself.c.LogAction(self.c.Tr.Actions.GitFlowStart)\n\t\t\t\t\treturn self.c.RunSubprocessAndRefresh(\n\t\t\t\t\t\tself.c.Git().Flow.StartCmdObj(branchType, name),\n\t\t\t\t\t)\n\t\t\t\t},\n\t\t\t})\n\n\t\t\treturn nil\n\t\t}","sourceCodeStart":32,"sourceCodeEnd":68,"githubUrl":"https://github.com/jesseduffield/lazygit/blob/c477a2959b229fbf3284be0d4d2904ab61ec3c94/pkg/gui/controllers/git_flow_controller.go#L32-L68","documentation":"Returned by GitFlowController.handleCreateGitFlowMenu when the user opens the git-flow menu but GitFlowEnabled() reports no git-flow configuration in the repository. lazygit does not shell out to the git-flow CLI here; it checks for git-flow sections in .git/config, so the error fires both when the git-flow extension is not installed system-wide and when it is installed but never initialized in this repo.","triggerScenarios":"Pressing the git-flow options key (default 'i') in the Branches panel on a repo where 'git flow init' has never been run, or where git-flow (AVH edition) is not installed at all. Any later git-flow subcommand from the menu would fail for the same reason, so the menu is blocked up front.","commonSituations":"Cloning a project that uses git-flow but not running initialization before opening lazygit; fresh machine without the git-flow-avh package; repos deliberately not using git-flow where the keybinding was pressed accidentally.","solutions":["Install git-flow AVH: brew install git-flow-avh / apt install git-flow.","Run 'git flow init' in the repo (accept defaults or set branch names) to write the [gitflow] sections into .git/config.","Reopen the git-flow menu in lazygit; GitFlowEnabled() should now pass.","If you don't intend to use git-flow, simply don't invoke the option; the check is harmless."],"exampleFix":null,"handlingStrategy":"validation","validationCode":"// guard before opening the menu:\nif !git.Flow.GitFlowEnabled() {\n    // run `git flow init` (non-interactive defaults) or hide the option from the UI\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Run 'git flow init' as part of repo bootstrap scripts","Hide/disable the git-flow keybinding in keybindings config for repos that don't use it"],"tags":["git","git-flow","configuration","extension-missing"],"backgroundTag":null,"analyzedSha":"c477a2959b229fbf3284be0d4d2904ab61ec3c94","analyzedAt":"2026-08-15T08:34:32.451Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}