Wipe Git history from a repository | Freek Van der Herten

A short guide to removing Git history entirely. Particularly useful when you're forking an existing project as a base for something new.

  1. Delete the .git folder entirely
  2. Run git init to create a new one
  3. Add all files and create your new first commit

Not tricky, but surprised me that there wasn't a solution within Git itself.

Explore Other Notes

Older âž¡

World building online

This looks like a very interesting world-building tool. Create maps, family histories, write stories, track campaigns, all from a single profile. Neat […]
  • A short guide to removing Git history entirely. Particularly useful when you're forking an existing project as a base for something […]
  • Murray Adcock.
Journal permalink

Made By Me, But Made Possible By:

CMS:

Build: Gatsby

Deployment: GitHub

Hosting: Netlify

Connect With Me:

Twitter Twitter

Instagram Instragram

500px 500px

GitHub GitHub

Keep Up To Date:

All Posts RSS feed.

Articles RSS feed.

Journal RSS feed.

Notes RSS feed.