title: GitHub, HTTPS and Mac application
body: <p>I know SSH in GitHub causes no problem (no username/password to type everytime i.e.), but I need to use HTTPS for a repo of mine.</p>
  
  <p>Now, I <code>git init</code>ed  the repo, I committed, I did a <code>git remote add origin https://github.com/user/repo.git</code> <em>as suggested by GitHub</em>.</p>
  
  <p>I was about to do a <code>git push -u origin master</code>: first it promped me for username and password, and then answered with:</p>
  
  <pre><code>remote: Anonymous access to user/repo.git denied.
  fatal: Authentication failed for 'https://github.com/user/repo.git/'
  </code></pre>
  
  <p>I'm 300% sure I typed the right password (and I tried again a couple times anyway).
  I googled here and there, and then I tried my last chance: installing the GitHub app for Mac.
  I entered my credentials, entered the 2-factor auth code they sent me, and tried to push again: this time it worked.</p>
  
  <p>Why? What did the GitHub app do behind the scenes? Has it something to do with the 2-factor auth?</p>
  
  <p>Anyway, I would be able to not download the app on every machine I setup, maybe by automating this process with some script.</p>