title: BitBucket/Git error: You can only push your own commits in this repository
body: <h1>Problem</h1>
  
  <p>I'm cannot push to a remote branch of a BitBucket repository, getting below error.</p>
  
  <pre><code>remote: You can only push your own commits in this repository
  remote: Commit 0123456789abcdef was committed by my_username&lt;my_email@company.com&gt;
  To ssh://git@bitbucket:7999/my_project/my_repo.git
  ! [remote rejected] my_branch -&gt; my_branch (pre-receive hook declined)
  error: failed to push some refs to 'ssh://git@bitbucket:7999/my_project/my_repo.git'
  </code></pre>
  
  <h1>Observations</h1>
  
  <ul>
  <li>It's probably the BitBucket <a href="https://community.atlassian.com/t5/Bitbucket-questions/validation-username-in-commits/qaq-p/723970" rel="nofollow noreferrer">Verify Commit hook</a> causing this</li>
  <li>I understand the above hook checks that the user doing the push must equal to the author of the new commits</li>
  <li>I ensured that <code>git config</code> has the correct email and username</li>
  </ul>
  
  <h1>Questions</h1>
  
  <ol>
  <li>What exactly is being checked? Is it username and email? Is anything else checked?</li>
  <li>How do I know which exact username and email combination BitBucket is expecting?</li>
  </ol>
  
  <hr>
  
  <p><em><a href="https://stackoverflow.com/questions/52886362/error-in-git-you-can-only-push-your-own-commits-in-this-repository">Error in git: You can only push your own commits in this repository</a> asked the same question, where one solution was to disable the Verify Commit hook. However, that's just a workaround, and I do intend to have the hook continue running.</em></p>