Git squash all commits in branch without conflicting
问题 A common development workflow for us is to checkout branch b , commit a bunch to it, then squash all those commits into one (still on b ). However, during the rebase -i process to squash all the commits, there are frequently conflicts at multiple steps. I essentially want to alter the branch into one commit that represents the state of the repository at the time of the final commit on b I've done some searching but I haven't found exactly what I'm looking for. I don't want to merge --squash