Home > Enterprise >  Unwanted submodules pushing to GitHub
Unwanted submodules pushing to GitHub

Time:10-21

Every time I push a file to Github it uploads as a submodule! How do I keep this from happening? Is there a way to reverse the submodule and upload like the rest of the files inside of the folder?

CodePudding user response:

Check first if you have multiple .git folder

  • one for you main local repository
  • one for some subfolders inside your local repository

That would means "nested Git repositories", which would be uploaded to GitHub as a "gitlink" (a reference to the root tree SHA1 of the nested repo)

Removing those nested .git subfolders (assuming you don't need the internal history) would allow to add, commit and push the actual content of those subfolders.

  • Related