Git clone into a non-empty directory

Powershell command to remove the existing .git folder

Remove-Item '.git' -Recurse -Force

Make a bare Git repository

git clone --bare .git

If true, this repository is assumed to be bare and has no working directory associated with it

git config --unset core.bare

Reset current HEAD to the specified state

git reset <option>
# History changed, HEAD changed, Working directory is not changed.
git reset --soft
# Wipe out all changes in the working tree, so that your current files match the contents of HEAD
git reset --hard

This will display the state of the working directory and the staging area.

git status