How to reinitialize Git repository

In case you need to reinitialize your Git repository. These are the steps to follow.

#!/bin/bash

rm -rf .git
git init
git add --all
git commit -am "Initial comment"
git remote add origin https://__GIT_REPO_LOCATION__
git push -u --force origin master