title: Visual studio 2019 "Error encountered while pushing to the remote repository: Failed to push to the remote repository..."
body: <p>In Visual Studio 2019 I have &quot;Unpushed Commits&quot; as seen below:</p>
  <p><a href="https://i.stack.imgur.com/TdYJU.png" rel="noreferrer"><img src="https://i.stack.imgur.com/TdYJU.png" alt="enter image description here" /></a></p>
  <p>When I try to push them I get the error and this is what it looks like on the GUI:
  <a href="https://i.stack.imgur.com/stJKN.png" rel="noreferrer"><img src="https://i.stack.imgur.com/stJKN.png" alt="enter image description here" /></a></p>
  <p>note: the yellow label with &quot;Failed to push...&quot; is not clickable.</p>
  <p>The Output from Source Control - Git is as follows:
  <a href="https://i.stack.imgur.com/DWA7W.png" rel="noreferrer"><img src="https://i.stack.imgur.com/DWA7W.png" alt="enter image description here" /></a></p>
  <p>The output window doesn't show me any useful details. Am I looking in the wrong place? Is there a better place to see the actual error?</p>
  <p>The answer in this case is that the policy on the branch 'develop' does not allow direct pushes.  I was kinda hoping that the error in the output would state something like 'Failed to push due to a policy constraint on the branch'</p>