i followed the post on how to do squash commits from here so i did :
git reset --soft HEAD~20
git commit
git push -f
i have a lot of commits and between then i have few merges I did from the develop branch to my feature branch to update my branch with changes for example :
commit (merge): Merge remote-tracking branch 'origin/develop' into feature/my_coo_branch
after doing the git reset --soft HEAD~20 command i found out that all the merges disappeared from my branch.
why ? and how can i avoid it ?