How to remove initial commit in Git

To revert the initial commit when it is the only commit in the repository:
Remove the Git repository's history use below command

rm -rf .git

Comments

Popular posts from this blog

How to build MCP Server and use MCP Inspector in Node

How to install ngrok in wsl for activepieces