DEV Community

Discussion on: Git: best ways to overhaul a project?

Collapse
 
clpsplug profile image
C. Plug

The last time I had to do it, I pruned everything and committed the deletion as any other regular changes. That way, I can tell that I decided an overhaul.

If you purge your entire past works with force push, you will lost ability to go back and recover bits that you later find useful. It is also not healthy for other places that check out the same repository for, e.g., on-server building purposes.

Collapse
 
charlesloder profile image
Charles Loder

That's a great idea!

Collapse
 
andrewbaisden profile image
Andrew Baisden

This right here.