title: TFS - Create a branch from local working copy
body: <p>I am trying to create a branch from my local workspace of a checked-out project.</p>
  
  <p>Basic background:
  I checked out from the 'trunk' of a project and made a lot of changes.<br>
  I now want to check these changes into a new branch.<br></p>
  
  <p>I created a new branch from within Source Control - but my workspace is still mapped to the trunk.<br><br></p>
  
  <p>I followed the steps from an article I found here: <a href="https://stackoverflow.com/questions/3728318/branch-from-local-workspace">Branch from local workspace</a> <br></p>
  
  <p>So I shelved my changes.<br>
  Created a branch.<br>
  Used TFPT to migrate from the trunk to the branch <br></p>
  
  <pre><code>tfpt unshelve "My uncomplete changes" /source:"$/MyRoot/MyProject-Trunk" /target:"$/MyRoot/MyProject-Branch" 
  </code></pre>
  
  <p>Everything looked to go smoothly (except it doesn't seem to support files which have been renamed - so I had to skip them)</p>
  
  <p>But nothing has changed.<br>
  The branch is an exact duplicate of the trunk (no local changes included)<br>
  My workspace is still mapped to the trunk.<br>
  If I check-in, it checks into the trunk. </p>
  
  <p>I tried to unmap the checked-out version I have, delete the local files, then check out the branch, then unshelve the changes I made, but I am flooded with </p>
  
  <pre><code>No appropriate mapping exists for $/Root/MyProject/Myfile.cs
  </code></pre>
  
  <p>It seems so simple, but TFS seems to add an extra layer of complexity to what was such an easy task in SVN...<br>
  Hopefully something stupid I am doing wrong.</p>
  
  <p>Any help appreciated.</p>