search

Home  >  Q&A  >  body text

terminal - 打开mac的终端为什么会显示git:(master),如何取消掉?

仅有的幸福仅有的幸福2792 days ago1191

reply all(2)I'll reply

  • 黄舟

    黄舟2017-05-02 09:20:31

    You have executed it in your home directorygit init命令吧,它把你的目录初始化成一个git仓库了。如果是操作失误导致的,可以直接删掉.git目录:rm -rf ~/.git

    reply
    0
  • 给我你的怀抱

    给我你的怀抱2017-05-02 09:20:31

    Obviously you changed the shell to zsh, used the oh-my-zsh configuration, and used the default theme. This can prompt you about the status of your git directory. Just cd to exit your git directory.

    reply
    0
  • Cancelreply