I wanted to commit B to the remote master branch whose head is at A. I had previously committed code saved locally (say X). When I pushed B to the master this caused the following:
A-----B
/
X--/
I just want B to committed. B should be on top of A and revert X commit. Can someone help me on this?