I was in a similar situation when I was skeptical about sharing my code. So before sharing my code I wanted to create another copy or create a copy of my repo with code. So below are the steps I followed.
Create a copy of the project in your local file system
Then go inside the project folder and manually delete the .git and the associated git folders
Now open the project in Visual Studio.
The from the bottom right extensions add the project to Git Repository and create a new Repository