I have a git project A that uses a submodule B from Github. I cannot push to the Github project B because it is not mine. I want to do a small change in B that is not pushed to
If you want to share it, you somehow have to publish it.
One way is :
BA: update the git module remote url to point to your fork, and use the commit id for the commit you created.At a later time, if the changes you want are integrated to upstream B, you can switch back to the original base url for project B.
Another option, if you are ok with it, is, in your next commit on A, to stop handling B as a submodule, and integrate it as a subtree of your repo.