I have made around 20 commits on my code which I wanted to merge into one. So I rebased all of them as shown below,
pick 1st_commit squash 2nd_commit squash