title: How to remove origin from git repository
body: <p>Basic question: How do I disassociate a git repo from the origin from which it was cloned?</p>
  
  <p><code>git branch -a</code> shows:</p>
  
  <pre><code>* master
    remotes/origin/HEAD -&gt; origin/master
  </code></pre>
  
  <p>and I want to remove all knowledge of origin, and the associated revisions.</p>
  
  <p>Longer question: I want to take an existing subversion repo and make a number of smaller git repos from it. Each of the new git repos should have the full history of just the relevant branch. I can prune the repo to just the wanted subtree using:</p>
  
  <pre><code>git filter-branch --subdirectory-filter path/to/subtree HEAD
  </code></pre>
  
  <p>but the resulting repo still contains all the revisions of the now-discarded subtrees under the origin/master branch.</p>
  
  <p>I realise that I could use the -T flag to git-svn to clone the relevant subtree of the subversion repo in the first place. I'm not sure if that would be more efficient than later running multiple instantiations of <code>git filter-branch --subdirectory-filter</code> on copies of the git repo but, in any case, I would still like to break the link with the origin.</p>