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.
我只是想用一个现有的应用程序设置一个 bitbucket存储库git remote add origin https://url,它会添加 1136 个文件。我怎样才能清除所有这些?
git remote add origin https://url
如果文件未被跟踪(即以前从未添加到您的 Git 存储库中),则使用以下命令:
git clean -df
否则,使用这个:
git checkout -- .