Home > other >  Can I reset the commit history from a forked repo?
Can I reset the commit history from a forked repo?

Time:06-09

I'm currently starting a new project based on a previous one . I forked it and now I'm cleaning up the parts I don't need.

The issue is that a forked project keeps the commit history and bring the starting date of the base repo.

I would like the repo to look like it was a brand new project.

Is it possible to do so ?

CodePudding user response:

Yes: You can simply check the repo out locally, remove the (usually hidden) .git folder, and create a new repo.

Alternatively, you can rebase the entire history into one giant squash commit, but that'll be more work if you really are just interested in a single fork-is-base commit.

CodePudding user response:

You can remove the .git folder and reinit the repo

  • Related