If you are a Windows user, install GitHub Desktop. It “automagically” (my new favorite word of the day) sets up your credentials, including 2FA.
You are not forced to use the GitHub Desktop UI once you’ve installed it. I mention this because before I started using GitHub Desktop, I didn’t know if Desktop would play nicely alongside the command line. Actually, GitHub Desktop makes using a command line interface even easier! (stay tuned for tomorrow’s tip).
First, you’ll login using your GitHub.com username and password.
Next, you’ll be prompted for you 2FA code.
And the you’re all set! So even if you want to go back to using the command line, you still can! Just check out tomorrow’s tip.
Desktop also does a bunch of other stuff for you that we’ll get to later in this tip of the day series.