Git - folder not pushed to repo

I am trying to push a whole folder to my repo on Bitbucket and I kept following as I go through the source: enter image description here

I also check the commit to find it empty, nothing was pushed. The folder was originally named ChartNew.js as a result of cloning, so I tried to rename it several times, but I'm still stuck with this problem.

Any idea how I can fix this.


UPDATE:

so I tried the second answer in No submodule mapping found in .gitmodules for path and missing .gitmodules file and yes the folders were deleted successfully. I cloned the Charts repository to replicate the push repo, but then I got stuck again with the same problem and the same problem was in the screenshot above.: /

+3


source to share


1 answer


These are submodule entries.

They are called gitlink , special entries in the index of the pushed repo.

The submodule is made to write a specific SHA1 subrep: see " git submodule checks the same commit .

If a is .gitmodule

no longer in the repo, these gitlinks need to be removed:



git rm ChartNewjs # no trailing /
git rm Charts
git add -A . 
git commit -m "remove gitlinks submodules"
git push

      


omarsafwany offers to edit version :

In case you git rm

did not remove anything, check the answer " No submodules found in .gitmodule

for a path that is not a submodule
" answer to remove, then follow the instructions above.

+2


source







All Articles