[英]Deleting a git repo of home directory on mac
I would like it to have a fresh window each time I open terminal and can't figure out how to delete this repo.
我希望每次打开终端时都拥有一个新窗口,并且不知道如何删除此存储库。 When I enter pwd to find the folder path it just says user/tannerlarson but I can't find it... Thinking its the entire home directory not sure what happened.
当我输入pwd来查找文件夹路径时,它只是说出了user / tannerlarson,但我找不到它...考虑它的整个主目录并不确定发生了什么。
To delete the git repo, you need to remove the whole .git
directory, because the system will hide all directories started with .
要删除git repo,您需要删除整个
.git
目录,因为系统将隐藏以开头的所有目录.
, you can only see it when you ls -la
when you see it's there rm -rf .git
,你只能看到它时,你
ls -la
当你看到它的存在rm -rf .git
WARNING : Make sure you copy the full command, since rm -rf .
警告 :确保复制完整命令,因为
rm -rf .
will remove everything under your home directory. 将删除您主目录下的所有内容。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.