Git master home directory

不问归期 提交于 2019-12-20 04:56:11

问题


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). I don't want my home directory in github, just a few subfolders.

Thanks!


回答1:


You can remove the git directory that is hidden inside of your home directory. In the terminal enter the following:

cd ~
sudo rm -R .git

Note: THIS WILL REMOVE ANY GIT HISTORY FOR YOUR HOME DIRECTORY. 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.



来源:https://stackoverflow.com/questions/33489612/git-master-home-directory

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!