Depends on the purpose, I'd say.
If you want to have this structure only at the repo, but not local (for whatever reason), then you could cp or mv the folder contents to the root, commit + push, and then revert that commit.
Of course the next commit+push would revert it altogether. So the reason for this would be worth to know.
Fosstodon is an English speaking Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.