How to create a repo from a folder of an existing repo?

I have a repo containing a number of utilities in subdirectories, one of which has grown and now deserves a repo of its own.

Is there any way to extract the folder, and the history of its files, into a new standalone repo?


You can follow the steps detailed here:


Brilliant, thanks - somehow my searches hadn’t turned that up.