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.
其中.gitignore是我需要在本地主机上提取的目录。我在 Github 的项目结构中没有看到这个目录,但是当我尝试搜索它时,我在.gitignore文件中看到了这个目录。
.gitignore
我从本地主机上的 Github 中提取了项目,但是这个目录丢失了。我怎样才能得到那个目录?
谢谢
如果该目录已在其中列出,.gitignore则 git 将忽略该目录。这意味着它不会被添加到提交中,因此不会被推送到 github,因此您无法拉取它。
大多数情况下,会列出一个目录,.gitignore因为该目录中的文件是自动生成的,例如在构建项目时。