title: Switching tracking between git repositories
body: <p>I just created a new remote repository then added, committed and pushed all local repository files to this new remote repository. </p>
  
  <pre><code>git add -A
  git commit -m "all files added"
  git push newRepo master
  </code></pre>
  
  <p>Before I did this I was pushing to another repository while leaving most files untracked as well as not committing changes to most files.</p>
  
  <pre><code>&gt; git status
  
  On branch master
  Your branch is ahead of 'origin/master' by 2 commits.
    (use "git push" to publish your local commits)
  nothing to commit, working tree clean
  </code></pre>
  
  <p>Now my local repository is ahead of the oldRepo 2 commits and changes seem to be tracked between newRepo and the local repository. How can I revert back to tracking between the oldRepo and my local repo?</p>
  
  <p>So there are 2 remote repositories: newRepo and oldRepo + my local repo
  I need to track between local and oldRepo.</p>