title: Git push: Missing or invalid credentials. fatal: Authentication failed for 'https://github.com/username/repo.git'
body: <p>I was trying to do my first push on a new MacBook and got this error after <code>git push</code> (everything worked well on my old MacBook):</p>
  <pre><code>Missing or invalid credentials.
  Error: connect ECONNREFUSED /var/folders/tx/53fffl0j51qb47mhnlf8zsdc0000gn/T/vscode-git-1d38026c7f.sock
      at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1056:14) {
    errno: 'ECONNREFUSED',
    code: 'ECONNREFUSED',
    syscall: 'connect',
    address: '/var/folders/tx/53fffl0j51qb47mhnlf8zsdc0000gn/T/vscode-git-1d38026c7f.sock'
  }
  Missing or invalid credentials.
  Error: connect ECONNREFUSED /var/folders/tx/53fffl0j51qb47mhnlf8zsdc0000gn/T/vscode-git-1d38026c7f.sock
      at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1056:14) {
    errno: 'ECONNREFUSED',
    code: 'ECONNREFUSED',
    syscall: 'connect',
    address: '/var/folders/tx/53fffl0j51qb47mhnlf8zsdc0000gn/T/vscode-git-1d38026c7f.sock'
  }
  remote: No anonymous write access.
  fatal: Authentication failed for 'https://github.com/username/repo.git/'
  </code></pre>
  <p>Any idea why and how I can resolve it?</p>