title: 'git push origin MyBranchName' throws error "HTTP Basic: Access denied"
body: <p>I am new to Git (just started 2 days ago). I'm attempting to create a project to practice the basic commands I've learned from <a href="https://www.atlassian.com/git/tutorials/what-is-git" rel="nofollow noreferrer">here</a>.</p>
  
  <p><strong>Where I am, so far:</strong></p>
  
  <ul>
  <li><strong>[success]</strong> Create a new public git project (because I tried private and internal before but I could not clone it, and I don't know why). <a href="https://gitlab.com/portfolio-flame/speedtype" rel="nofollow noreferrer">Here it is</a>.</li>
  <li>Added a <code>README.md</code> into the project.</li>
  <li><strong>[success]</strong> Create a new branch named <code>develop</code>.</li>
  <li><p><strong>[success]</strong> In my local folder <code>C:\gitprojects</code>, set global <code>user.name</code> and <code>user.email</code> with the commands:</p>
  
  <ul>
  <li><code>git config --global user.name &lt;my user name&gt;</code></li>
  <li><code>git config --global user.email &lt;my-email&gt;</code></li>
  </ul></li>
  <li><p><strong>[success]</strong> Clone the project into my local folder <code>C:\gitprojects</code> with the command <code>git clone https://flamedenise19@gitlab.com/flamedenise19/speedtyping.git</code></p></li>
  <li><strong>[success]</strong> Create a local branch with the command <code>git checkout -b "develop"</code>.</li>
  <li><strong>[success]</strong> Manually add a new file <code>test.txt</code> on local root folder for test pushing.</li>
  <li><strong>[success]</strong> Commit the new file with the command <code>git commit -m "adds test.txt"</code></li>
  <li><strong>[attempting]</strong> Push the commit with the command <code>git push origin develop</code></li>
  </ul>
  
  <p>And now, I'm stuck with the <code>push</code> part. After entering <code>git push origin develop</code>, a new window pops up, asking for my credentials (see screenshot below):</p>
  
  <p><a href="https://i.stack.imgur.com/x21Qk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/x21Qk.png" alt="enter image description here"></a></p>
  
  <p>So I did enter my credentials (the very same username and password I use when logging in to gitlab.com), but after that, I got this error (also see screenshot below):</p>
  
  <pre><code>remote: HTTP Basic: Access denied
  fatal: Authentication failed for 'https://gitlab.com/flamedenise19/speedtyping.git/'
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/O8B6L.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/O8B6L.png" alt="enter image description here"></a></p>
  
  <p><strong>QUESTIONS:</strong></p>
  
  <ul>
  <li>Why can't I push successfully, even with the correct username and password? Am I missing something or have I done something wrong along the way?</li>
  <li>Is there a way to remove the step of having to enter my credentials everytime I push something?</li>
  </ul>
  
  <p>Please help.</p>
  
  <blockquote>
    <p><strong>NOTE:</strong> I have seen <strong><a href="https://stackoverflow.com/questions/3162912/git-keeps-asking-for-password">THIS ONE</a></strong>, and the answers are mentioning Tortoise. Is it always required to use tortoise in order to
    use Git?</p>
  </blockquote>
  
  <p><strong>SOME BACKGROUND INFO:</strong></p>
  
  <p>Two-Factor Authentication is <strong>disabled</strong> for my account (see screenshot below):</p>
  
  <p><a href="https://i.stack.imgur.com/ISrGo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ISrGo.png" alt="enter image description here"></a></p>