Using Personal Access Tokens with GIT and GitHub

Ed Goad · 303K views · 2021 · 9:30

Open on YouTube

Testing, debugging & developer toolsSoftware practice, open source & careerstutorialdated

Why Stack Overflow recommends it

Stack Overflow users link it when answering questions about GitHub rejecting passwords and how to authenticate git clone, pull and push with a personal access token.

Recommended by 3 people across 3 different months, 2021 to 2023.

What it is

A short screen walk-through by Ed Goad showing how to create a GitHub Personal Access Token and use it in place of a password for Git operations over HTTPS. It covers generating the token in GitHub's developer settings and configuring git and credentials on the command line.

What people said

Recommends Adrian J. Moreno · 2021-06 · Stack Overflow · on “how to use Personal access token to clone, pull, and push a repo?”

You have to use SSH keys. Create one for each computer and register them all to the repo that you need to access. Doing this allows you to remove access computer by computer. Once you have the SSH keys configured in Github, you can read this article to setup the Personal Access Tokens. [LINK] UPDATE It tells you how to change to the token in the documentation Using a token on the command line Once you have a token, you can enter it instead of your password when performing Git operations over HTTPS. For example, on the command line you would enter the following: $ git clone [LINK] <--- HTTPS, not SSH Username: your_username Password: your_token <-------- THE TOKEN, not your password Personal

Recommends Omzig · 2021-11 · Stack Overflow · on “How to install/setup TortoiseGit to work with GitHub”

This video [this video] by Ed Goad helped me out. It shows how to setup a PAS token and get it configured for git.exe and TortoiseGit. Steps from the video include: Create PAS from GitHub Profile Settings | Developer Settings | Personal access tokens. Copy your PAS run a few commands: git config --global user.name 'yourUser' git config --global user.email 'youremail@domain.com' git clone [LINK] Username for ' [LINK] ': yourUser Password for ' [LINK] ': Paste in your PAS here instead of your real password.

Recommends Al Mamun Khan · 2022-07 · Stack Overflow · on “Message "Support for password authentication was removed."”

First you need SSH Key Based Authentication Windows Tutorial: SSH Key Authentication [LINK] Linux/Mac Tutorial: SSH Key-Based Authentication [LINK] Documentation [LINK] And then Generate a personal token [LINK] Set your user name: git config --global user.name "userName" Set your email address: git config --global user.email "email" git config --global credential.helper cache git push / git pull or something user name and password ( personal-token ) You can follow this video: Using personal access tokens with Git and GitHub [this video]

Cites imnotpey1 · 2023-02 · Stack Overflow · on “Unable to login to GitHub account even with correct credentials”

the problem with this is that you need to use a personal token access and this will solve your problem. try this link and see if it solves your problem [this video]