title: Git fast forward replaces entire repo deleting previous history
body: <p>There is a repo on github named <strong>A</strong>. I cloned this repo to my local from github. The original repo A has a branch named 'a', which is at a previous version from A. There was a commit from the owner of the repo which deleted the history and replaced all the files on the repo.  On github if you comapre the two, it says, <code>A and a are entirely different commit histories</code><br/></p>
  
  <p>My problem is I want to push a commit on a which is in sync kind of was like a back up before the owner fast forwarded the master branch. But if I git pull before commit(which is a good practise) I am sure to run into problems since it's not at all into sync.<br/></p>
  
  <p>The best solution would be to stop tracking what master does and replace it with the a branch which is <a href="https://stackoverflow.com/questions/10920023/replacing-the-master-branch-in-git-and-preventing-fast-forward">not possible</a> as to what I know. What should I do to delete the fast-forward commit and make it sync back to 'a' branch.<br/></p>
  
  <p>P.S. The owner of the repo gets <code>![rejected] master -&gt; master (non-fast-forward)</code> it he tries to do a git pull. Says "the tip of his currrent branch is behind its remote counterpart"<br/></p>
  
  <p>If any of the part is unclear please feel free to ask, I am running into this problem since continuous 2days!
  Thanks.</p>