I've been doing some beginning work on a repo and I don't need the history.
I want to start from ground zero w/ no history?
Can I simply delete the .git
folder and run git init
again.
But how will this effect my remote repos?
cd "$PWD/`git rev-parse --show-cdup`" #go to the project's root
rm -rf .git
And then:
git init .
#...
As for your remote repos, you'll need to git push --force
into them (or push to a new, completely separate branch).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With