How does it do 2 factor auth? You mean through your email?

no, like authenticator (email would also work), github needed 2 factor auth so it just grabbed the add to authenticator QR and installed a CLI authenticator program. but also yeah, it can also do the email option