删除 cmder 终端中工作目录旁边的 GitHub 分支

Remove GitHub Branch next to the working directory in cmder Terminal

See image of cmder terminal with Fixes branch

在当前目录旁边它说(修复 --> 起源)但是当我输入 git 分支命令时它不显示任何 git 分支。如何从目录旁边的显示中删除 (Fixes --> origin)?为什么显示那个分支?这是另一个项目的分支。

试试看:

git branch -avv

您将看到与名为 'origin'

的远程存储库关联的本地分支 Fixes

您可以 stop tracking the remote branch origin/Fixes 使用:

git branch --unset-upstream Fixes

然后,你将不会再看到(Fixes --> origin),只会看到(Fixes)

OP McCoder actually finds ():

There was a .git directory in my C:\Users\Mel directory(so one level up).

I removed the directory and the Fixes branch finally disappeared!
I thought it deleted git from my entire system but I created a test dir and ran git init successfully.