简体   繁体   中英

GitHub shows a submodule instead of a subfolder

Git unconsciously created submodule from my subfolder where there was.git lately. I deleted.git and there's no git files like.gitignore but still can't add files to this subfolder. It looks like this

git 文件夹

And inside io-invoices (submodule) I've got

子模块文件夹

I've checked hidden files.

You probably need to remove that directory from the Git tree and re-add it later. Backup everything before!

git rm --cached ./io-invoices
git add ./io-invoices

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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