git: 安装 SourceTree 后'credential-' 不是 git 命令

Leo*_*tto 4 git macos terminal atlassian-sourcetree

我直接在 Macbook 上的终端上使用 git。

我最近安装了 SourceTree 作为 git 的 GUI 工具。但在那之后,我意识到 SourceTree 更改了我的本地 git 存储库配置,并且我的命令 git push、git pull 或 git fetch 改变了它的行为。

现在我得到了这些命令的输出。

git: 'credential-' is not a git command. See 'git --help'.

The most similar command is
    credential
Run Code Online (Sandbox Code Playgroud)

有人能帮我吗?我的存储库托管在 GitHub 上,在出现这个奇怪的输出之后,命令立即正确运行。

rah*_*hra 9

问题得到解决git config --remove-section credential

谢谢!