Git: How to squash all commits on branch
Another way to squash all your commits is to reset the index to master: This isn’t perfect as it implies you know from which branch “yourBranch” is coming from.Note: finding that origin branch isn’t easy/possible with Git (the visual way is often the easiest, as seen here). Note: git branch –show-current has been introduced with Git 2.22 (Q1 20219). EDIT: you will … Read more