title: remote: Unauthorized fatal: Authentication failed Bitbucket
body: <p>Ok, so Here's the scenario,</p>
  
  <p>I had user1 logged in to my terminal for bitbucket account.</p>
  
  <p>I had logged in like </p>
  
  <pre><code>$ git config --global user.name "user1"
  $ git config --global user.email "user1@gmail.com"
  </code></pre>
  
  <p>I was able to do <code>commit</code> and <code>push</code> perfectly. </p>
  
  <p>Now I had another account on bitbucket with another email id for user2.</p>
  
  <p>So I logged in like: </p>
  
  <pre><code>$ git config --global user.name "user2"
  $ git config --global user.email "user2@gmail.com"
  </code></pre>
  
  <p>But now when I am doing <code>git push origin master</code> I am getting the below error. </p>
  
  <pre><code>fatal: Authentication failed for 'https://user2@bitbucket.org/user3/test.git/'
  </code></pre>
  
  <p>So I completely uninstalled <code>git</code> from my Ubuntu 14.04 and installed it again and logged in again. But even then getting the same issue.</p>
  
  <p>How to avoid that error message?</p>