Home > Net >  Git not pushing all files within a certain folder
Git not pushing all files within a certain folder

Time:09-26

I connected to my remote repo, added all files using git add . and then git commit -m "initial" and then to push I used git push -u -f origin workingBranch

All files and folders within my project was pushed to my remote repo in BitBucket, except 1. See screenshots. I can't also seem to find a way to check the gitignore file either?

Thank you for any help. enter image description here

enter image description here

enter image description here

EDIT enter image description here

EDIT 2 enter image description here

CodePudding user response:

but I deleted the old repo from the fictional-university-theme directory?

That would not be enough, the gitlink entry might still be registered in the index of the repository.

Try

cd /path/to/repository/themes
# where fictional-university-theme  was

# no trailing / at the end:
git rm --cached -- fictional-university-theme   

git commit -m "fictional-university-theme"

You also need to remove any fictional-university-theme in your repository .gitmodules file.

If you still have the fictional-university-theme folder present, you now can add it, commit it and push it to your repository.

To fully remove a submodule though, the official command is git submodule deinit.

  • Related