How to remove all commit history in git?
Clone the project, e.g. myproject is my project repository:
git clone https://github.com/huniko519/myproject.git
Since all of the commits histories are in the .git folder, we have to remove it:
cd myproject
And delete the .git folder:
git rm -rf .git...
huniko519.hashnode.dev1 min read