问问题
1058 次
3 回答
3
You can un-init
a git repository by simply erasing it. It's all in the .git
directory of when you typed the git init
command.
You can add files to the repo by using git add
, but you'd better sort out the “my whole system is under git” issue first.
于 2013-11-13T15:45:49.207 回答
1
Do you mean you executed git init
in /
directory? If so, maybe just delete it (rm -rf /.git
)?
If you want to create a repo just a create a directory and execute git init
inside that directory.
于 2013-11-13T15:52:24.767 回答
0
deleting .git in usr/username did the trick for me. I was using Oh My ZSH
于 2015-11-21T11:43:10.997 回答