When a repository is cloned by using simple git clone repo, the master branch is automatically checked out.  If after this automatic checkout, I want to delete all files checked out and turn the clone in to a bare clone, how can I achieve this?  Are there configurations within the .git folder that I can modify to accomplish this?
Side note: I know that specifying the   If I delete the files that are checked out, those files will be shown as deleted when running --no-checkout or -n flag during clone prevents checkout of HEAD and keeps the repository bare.git status.
 
     
     
     
    