How can I re-run my git repository?

I started work on a repo and I don't need a story.

I want to start from scratch zero without a story?

Is it possible to simply delete the .git folder and run git init again.

But how will this affect my remote repositories?

+1
source share
1 answer
 cd "$PWD/`git rev-parse --show-cdup`" #go to the project root rm -rf .git 

And then:

 git init . #... 

As for remote repositories, you will need git push --force in them (or click on a new, completely separate branch).

+3
source

Source: https://habr.com/ru/post/1236764/


All Articles