How to authenticate to GitHub using username and password

I was setting up a new editor and I was trying the GitHub push workflow.

I committed my changes, pressed “Push” and I got a dialog window to enter my GitHub username and password.

On GitHub I have 2FA set up, so you can’t j…


This content originally appeared on flaviocopes.com and was authored by flaviocopes.com

I was setting up a new editor and I was trying the GitHub push workflow.

I committed my changes, pressed “Push” and I got a dialog window to enter my GitHub username and password.

On GitHub I have 2FA set up, so you can’t just login using those credentials.

What I had to do was create a personal access token that’s tied to the app, with the permission needed.

So I went to the GitHub settings, located Developer Settings:

Clicked Personal access tokens:

Now add a name so you’ll remember what this token is for, set the expiration to “No expiration” and enable the repo scope. That’s the only one you need:

Save and you’ll be able to see the token.

Now enter this token as the password in the username/password dialog window.

You’re set.


This content originally appeared on flaviocopes.com and was authored by flaviocopes.com


Print Share Comment Cite Upload Translate Updates
APA

flaviocopes.com | Sciencx (2021-11-29T05:00:00+00:00) How to authenticate to GitHub using username and password. Retrieved from https://www.scien.cx/2021/11/29/how-to-authenticate-to-github-using-username-and-password/

MLA
" » How to authenticate to GitHub using username and password." flaviocopes.com | Sciencx - Monday November 29, 2021, https://www.scien.cx/2021/11/29/how-to-authenticate-to-github-using-username-and-password/
HARVARD
flaviocopes.com | Sciencx Monday November 29, 2021 » How to authenticate to GitHub using username and password., viewed ,<https://www.scien.cx/2021/11/29/how-to-authenticate-to-github-using-username-and-password/>
VANCOUVER
flaviocopes.com | Sciencx - » How to authenticate to GitHub using username and password. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/11/29/how-to-authenticate-to-github-using-username-and-password/
CHICAGO
" » How to authenticate to GitHub using username and password." flaviocopes.com | Sciencx - Accessed . https://www.scien.cx/2021/11/29/how-to-authenticate-to-github-using-username-and-password/
IEEE
" » How to authenticate to GitHub using username and password." flaviocopes.com | Sciencx [Online]. Available: https://www.scien.cx/2021/11/29/how-to-authenticate-to-github-using-username-and-password/. [Accessed: ]
rf:citation
» How to authenticate to GitHub using username and password | flaviocopes.com | Sciencx | https://www.scien.cx/2021/11/29/how-to-authenticate-to-github-using-username-and-password/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.