Ability to squash initial commit

10 votes

Sometimes it is needed to overwrite the initial commit when starting a new repo. Sometimes it is because the project is be forked and needs to have a "clean history" or sometimes as simple as cleaning up a multi step setup into one commit. The CLI command is `git rebase -i --root` the `--root` flag is what allows the initial commit to be squashed if you tell git to "pick" the initial commit and to "squash" all others.

Under consideration Suggested by: William Penton (Nexxuz) Upvoted: 19 Jan, '23 Comments: 3

Comments: 3