How to make multiple commits squashed in one commit from feature branch
Run to see commit history
![](https://raw.githubusercontent.com/jeremyabulencia/git-squash/main/img/gitlog-blacked.PNG)
Let's make the latest 2 commits in one commit
# I used 2 to capture 2 latest commit
git rebase -i HEAD~2
It will open a tab with a list of commits
![](https://raw.githubusercontent.com/jeremyabulencia/git-squash/main/img/listofcommits.PNG)
Change the word pick
to squash
on commits you want to omit or remove
![](https://raw.githubusercontent.com/jeremyabulencia/git-squash/main/img/listofcommitswithsquashed.PNG)
to save and exit the changes hit ESC :wq
Another tab will pop up with messages of commits
![](https://raw.githubusercontent.com/jeremyabulencia/git-squash/main/img/squashedcommitlist2of2.PNG)
Comment the commit messages you want to remove
![](https://raw.githubusercontent.com/jeremyabulencia/git-squash/main/img/commentedcommitmessage.PNG)
to save and exit the changes hit ESC :wq
Check the commit log again by running
![](https://raw.githubusercontent.com/jeremyabulencia/git-squash/main/img/newgitlog.PNG)
you see that there is no duplicate commit message
then push our update
git push origin develop -f