I have a git repo with a subfolder that was forked from another repo. The folder was simply copied over and not linked with git submodule.
Since using it, the subfolder has had some commits made to it and diverged from the upstream.
How do I connect this subfolder to the upstream as a submodule and keep the divergent commit as a rebase?