简体   繁体   English

如何在GitHub存储库中删除黑色隐藏文件夹

[英]How to delete Black hidden folder in GitHub repo

This is first time I am using Git. 这是我第一次使用Git。 In Git, I tried to commit some files. 在Git中,我尝试提交一些文件。 I had to force commit as some conflicts was arising. 由于发生了一些冲突,我不得不强行承诺。 But When I checked it online a Black folder was present there (In the given figure its ADME ). 但是,当我在线检查它时,那里有一个Black文件夹(在给定的图中,它是ADME )。 This seems like hidden folder. 这似乎是隐藏的文件夹。 Now I want to remove this folder. 现在,我要删除此文件夹。 But don't know how to do it. 但是不知道该怎么做。 Please help. 请帮忙。 Note:- I had committed all the files at same moment. 注意:-我同时提交了所有文件。

Git图像

It is a submodule. 它是一个子模块。 to remove it do the following: 要删除它,请执行以下操作:

Delete relevant line from the .gitmodules file 从.gitmodules文件中删除相关行

Delete relevant section from .git/config 从.git / config中删除相关部分

Run git rm --cached path_to_submodule (no trailing slash) 运行git rm --cached path_to_submodule(不带斜杠)

Commit and delete the now untracked submodule files. 提交并删除现在未跟踪的子模块文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM