title: Pushing from Xcode caused faulty commits - GIT
body: <p>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:</p>
  
  <pre><code> A-----B
      /
  X--/
  </code></pre>
  
  <p>I just want B to committed. B should be on top of A and revert X commit. Can someone help me on this?</p>