If a path is in a submodule, it would be part of the path declared in .gitmodules
(at the root of the parent repo).
See "List submodules in a git repository"
git config --file=.gitmodules --get-regexp ^^submodule.*\.path$ | cut -d " " -f 2
You should be able to add files and push from that source/about
submodule.
If you cannot push, that means the upstream repo of that submodule is not owned by you.
You could also consider un-submodule-ing the submodule.
How do I change ownership?
If you are in a repo you cannot push to, go to GitHub to that GitHub repo page, and click the fork button.
Then go back to your local repo and type:
git remote set-url origin https://<username>@github.com/<username>/arepo.git
(replace <username>
with your GitHub account name, and arepo.git
by the name of the repo you just forked)
Then try a git push -u origin master
.
If your repo includes submodules (has a .gitmodule
file), the same principle would apply.