I'm collaborating on a GitHub project (I've forked the repo) that has recently been re-structured into submodules
.
Earlier I would git stash
my changes, do a git pull --rebase shared_origin master
, and then perform git stash pop
to continue working. After commiting changes to my local repo, I would push them to my fork of the shared repo using git push my_origin development
and then create a PR
.
Now that the project has been split into submodules, how do I perform a pull rebase that replicates entire repo (including all submodules), re-apply my (unmerged) changes and continue with my development?
Please do consider the possibility where the file(s) I had changed have been moved to a different directory as a part of submodule-restructuring.