[英]Git master home directory
I've accidentally made my home directory the master. 我不小心将主目录设为主目录。 How do I undo this? 我该如何撤消呢?
Note: every time I open up terminal now it declares that my home directory is (master). 注意:现在每次打开终端时,它都会声明我的主目录为(master)。 I don't want my home directory in github, just a few subfolders. 我不希望我的主目录位于github中,而只是几个子文件夹。
Thanks! 谢谢!
You can remove the git directory that is hidden inside of your home directory. 您可以删除主目录中隐藏的git目录。 In the terminal enter the following: 在终端中输入以下内容:
cd ~
sudo rm -R .git
Note: THIS WILL REMOVE ANY GIT HISTORY FOR YOUR HOME DIRECTORY. 注意:这将删除您家庭目录中的所有GIT历史。 This will not remove any files in your home directory but it will remove git tracking from your home directory which is what I assume you want to do. 这不会删除您的主目录中的任何文件,但会从您的主目录中删除git跟踪,这是我认为您要执行的操作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.