Github submodule upload with git
Remove the nested Git repository:
rm -rf frontend/.git
Use Git submodules (if intended):
git submodule add <url> frontend
Ignore the nested repository (if not needed):
git rm --cached frontend
...............
git add .
git commit -m "Add frontend and backend folders"
git push origin master
git rm --cached frontend //after facing this issue, use below command, create mode 160000 frontend
git add frontend
git commit -m "Re-add frontend directory"
git push origin <branch_name>
No comments