GIT Create branch with squashed commits

Go to base_branch
git checkout base_branch

Create a new branch for our squashed changes
git checkout -b base_branch_sq

Merge changes from our_branch with squash
git merge --squash our_branch

Commit our squashed changes with new message
git commit -a -m "My squashed commits"

Dodaj komentarz


*