且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在Git中从远程存储库中删除已删除的文件夹?

更新时间:2023-12-04 20:48:40

Git实际上并不存储目录。它只是使目录在任何需要它们的地方存放存储库中的文件。如果新克隆仍然创建这些目录,请确保您没有看不到的文件(如.gitignore)。

Git doesn't actually store directories. It just makes directories wherever it needs them to hold the files that are in the repository. If a new clone still creates those directories, make sure you don't have files you can't see (like .gitignore) present.