Rewriting Entire Git Branch into a Single Commit
Squishing Everything Back to a Single Commit in Git Ever wanted your Git history to go back to the initial commit while preserving the content you have today? For example, maybe you’re making a private repository public and want to remove the commit history but keep the current state. While a better option might be to create a new repository and commit everything fresh, if you really need to do this, here are the steps I took recently....