title: Merge and push to protected branch without the web interface
body: <p>With protected branches on bitbucket and github, 
  after all check and approvals pass,
  is there a way to pull, merge, and push the protected branch using only git locally and avoiding the website?</p>
  
  <p>Also, avoid using a buypass such as <code>--force</code> to ensure that these checks have indeed passed.</p>
  
  <p><strong>bitbucket</strong> </p>
  
  <ul>
  <li>require a minimum x successful builds </li>
  <li>require at least x approval</li>
  </ul>
  
  <p><strong>github</strong></p>
  
  <ul>
  <li>require status checks to pass before merging</li>
  <li>require pull request reviews before morging</li>
  </ul>