简体   繁体   中英

missing files in git repository

I created a repository in github, and in my computer I created a folder cloned the repository and in that folder I added another folder with some files and after adding and commiting I pushed them to repository. but in the repository in my folder there is nothing. It should have a html-css folder and inside asset folder and index.html file.

this is my repository

After checking your github repository, I find that html-css folder was created as a submodule. The reason is because html-css has a .git folder and that causes github to add html-css as a submodule instead.

What you should have done was to clean up the folder by removing remnant .git folder within subfolders before pushing.

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