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