title: Visual Studio Team Services creates commit on pull request
body: <p>I have three branches <code>master</code>, <code>dev</code> and <code>feature1</code> (gitflow process). <code>dev</code> and <code>master</code> have branch policies applied (minimum of 2 reviews) so cannot be committed to directly or merged to. Standard setup right? I make some commits to the <code>feature1</code> branch. I create and complete a pull request to get the commits from <code>feature1</code> into <code>dev</code>. I then create and complete a pull request to get the changes from <code>dev</code> into <code>master</code>. VSTS now tells me that <code>dev</code> is behind <code>master</code>. I can't merge <code>master</code> into <code>dev</code> due to the policies.</p>
  
  <p>This is the state of my branchesafter four pull requests from <code>dev</code> into <code>master</code>.</p>
  
  <p><a href="https://i.stack.imgur.com/h5zx0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/h5zx0.png" alt="dev is four behind master"></a></p>
  
  <p><a href="https://i.stack.imgur.com/mkVOv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mkVOv.png" alt="the four pull requests"></a></p>
  
  <p>What can I do?</p>
  
  <p>As suggested by Tim Biegeleisen, I have attempted to merge <code>dev</code> into <code>master</code> but am unable to do so due to the branch policies.</p>
  
  <p>Merge <code>dev</code> into <code>master</code></p>
  
  <p><a href="https://i.stack.imgur.com/dEoK5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dEoK5.png" alt="enter image description here"></a></p>
  
  <p>Commits are ready to be pushed to <code>dev</code></p>
  
  <p><a href="https://i.stack.imgur.com/tFkFw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tFkFw.png" alt="enter image description here"></a></p>
  
  <p>Sync fails due to policies</p>
  
  <p><a href="https://i.stack.imgur.com/Ntwe8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ntwe8.png" alt="enter image description here"></a></p>
  
  <blockquote>
    <p>Error encountered while pushing to the remote repository: rejected dev -> dev (TF402455: Pushes to this branch are not permitted; you must use a pull request to update this branch.)</p>
  </blockquote>