Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 MacOS,并且错误地将 /User/myAccount 初始化到 git 存储库中。我真的不想要那个。如何撤消初始化并使其恢复原始外观?
您可以删除git init使用创建的文件夹rm -rf .git/。
git init
rm -rf .git/