Set up Git Authentication (on the command line)

08/01/2023
Go back

You're here because you'd like to know how to set up git authentication (on the command line).

What does this mean? It means you probably just got an error like this:

      $ git push -u origin main
          Username for 'https://github.com': arteen1000
          Password for 'https://arteen1000@github.com': 
          remote: Support for password authentication was
          removed on August 13, 2021.
          ...
          fatal: Authentication failed for ...
    


Here are the steps to fix this (and never have to type your password or username again):