Accidentally git inited the entire system root directory, which resulted in a reminder that The directory /Users/joe is under Git when opening any project.....
Please tell me how to cancel git for /Users/joe version control. (There are other libraries in subdirectories under this directory)
Execute
rm -rf .git
yangxiangming's operation is correct. The modifications of each git project will only be stored in the .git folder under its own git project directory and will have no impact on other .git folders. The only thing that has an impact is that the child git project must be submitted before the parent git project can be added or committed. I just tried your operation, deleting the .git folder under /Users/joe can revoke git's version control on /Users/joe
Just delete the .git folder