I have two commits : commit1 and commit2 locally.
commit1 got merged. commit2 is on top of commit1.
now, when I am trying to push commit2, it is trying to push two commits together and it gets rejected from remote saying, that commit1 has already been merged and remote rejects both the commits. my intention is to keep the changes of commit1 in commit2 and push only commit2 to masted. how can i do that?