I created a new project that included some folders that already had a git repository.
Edit: inner git repositories were not uploaded somewhere online and no commits where made in them, only in the main repo
When i added all the files with git add --all
for the initial commit and pushed them to bitbucket the inner git tracked folder was not present in the s but instead a link-like entry was listed with an alphanumeric like a sha hash like
<folder name> → 031c27df078f [031c27df078f]
After some confusion i had i ended up deleting my local files with the changes and the .git subfolder in the submodule.
I tried hard resetting to the first commit i had but no files were reverted.
Is there any way to get my changes back from my main git repo or are they forever lost?
Is there a way to push all folders including submodules?