I have a big repository which currently contains multiple projects in top level subfolders, say /a, /b, /c, and /d.
/a
/b
/c
/d
After searching around and trying the proposed solutions, it seems like the recommended way of doing is now with git-filter-repo (see here)
git-filter-repo
git filter-repo --path a --path b