title: How do I remove a deleted embedded Git repository and have it track with the outer repository?
body: <p>I have a sub-directory that was once it's own repository that was tracking to GitHub. I deleted that repository and attempted to push it as a subdirectory to a new repository, however it will neither commit nor push to the repo. It is still tracking to the old repo. Git remote rm  did not work because the repo no longer exists. I cd to the sub-directory and attempted to run git remote add origin. Now when I do git remote -v it shows: </p>
  
  <pre><code>origin  https://github.com/tjohnson1106/old-repo (fetch)
  origin  https://github.com/tjohnson1106/old-repo (push)
  upstream    git@github.com:tjohnson1106/new-repo.git (fetch)
  upstream    git@github.com:tjohnson1106/new-repo.git (push)
  </code></pre>
  
  <p>I have tried git remote set-url in the subdirectory and that doesn't work, Nor does git remote prune origin. What I want is the child directory to track to the master just as it would normally. How do I remove the embedded origin repo in the child directory and have it track with parent directory in the outer repository?</p>