Showing git branch in ConEMU

前端 未结 5 695
别跟我提以往
别跟我提以往 2021-02-08 07:04

Is there a way to show the branch in git somewhere visually (background or similiar) in ConEmu?

5条回答
  •  误落风尘
    2021-02-08 07:34

    Disclaimer #1

    ConEmu is not a shell, so it does not provide "shell features" like tab-completion, command history and others.

    Usually, Git information like branch or amount of changes is displayed in the command line prompt, for example C:\path\to\repository [branch|+2~4-6]>. This is done by the executing shell, not the console frame.

    As far as I know, the standard Windows command prompt (CMD) does not support modifying that. The bash that comes with Git for Windows already supports that perfectly though; and for PowerShell there are numerous extensions for Git, most notably posh-git.

提交回复
热议问题