Git master home directory

前端 未结 1 1124
挽巷
挽巷 2021-01-24 08:48

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\'

相关标签:
1条回答
  • 2021-01-24 09:26

    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.

    0 讨论(0)
提交回复
热议问题