title: Which refs, do I need to rewrite when trying to optimize a GitHub-hosted repository?
body: <h3>Background</h3>
  
  <p>We have a GitHub repository with a fairly large repository size because we have several framework binaries above 20mb in the history. This impacts CI times badly, as we're using hosted CI which is getting a fresh clone of the repository for every job.</p>
  
  <p>To improve this, I want to rewrite the history and move large files to Git LFS.</p>
  
  <h3>Problem</h3>
  
  <p>I'm trying to use <code>git lfs migrate import</code> for this purpose.</p>
  
  <p>As a preparation step I've tracked all remote branches locally, so that <code>--everything</code> is really going to rewrite everything and other developers on the team don't have to watch out for it, but can just get a fresh new clone.</p>
  
  <p>When I rewrite history of a GitHub-hosted repository, do I need to rewrite and force push the references GitHub seems to be using to keep track of pull requests (<code>refs/pull/*</code>) as well?
  <code>git lfs migrate import</code> has not included those as far as I can see.</p>