title: Git delete second repository and history
body: <p>I believe I copy pasted a git project <strong>content (edit)</strong> B. In the folder of my project A. After some testing and modification I deleted the git project B, and the remote it added. But all the commits history are still shown in my project A.</p>
  
  <ul>
  <li>How do I delete everything except what was in my original project?</li>
  </ul>
  
  <p>Observations:</p>
  
  <ul>
  <li><p>When I do git branch -av, I only see the branch from project A which is good.</p></li>
  <li><p>When I do git remote, I only see origin which is good (I deleted the project B - origin)</p></li>
  <li><p>When I show all branches, I see commits of both projects.</p></li>
  <li><p>No commits have been merged from project A to B or vise-versa. (I can see in sourcetree that both project never crosses each other.</p></li>
  <li><p>In the .git folder, I can see SHA in the log and refs dans that do not belong to project A.</p></li>
  </ul>
  
  <p>I don't know what I have done exactly to end up with this state... </p>
  
  <p>Comments:</p>
  
  <p>Example for the folder paths: </p>
  
  <p>C:\gitRepo\ProjectAB\</p>
  
  <p>C:\gitRepo\ProjectAB\ProjectA-1...</p>
  
  <p>C:\gitRepo\ProjectAB\ProjectA-2...</p>
  
  <p>C:\gitRepo\ProjectAB\ProjectB-1...</p>
  
  <p>C:\gitRepo\ProjectAB\ProjectB-2...</p>