[Solved] Update GitHub authentication to use token on macOS (rather than password)
As password authentication no longer exists in Github you have to use Personal Access Token to perform git operations. To use the access token you have to update your local machine's git credentials.
In this article, we will show some easy solutions to update GitHub authentication to use token on macOS rather than password.
First, you have to create a Github Personal Access Token from your Github profile. If you don't know how to create one you can check this article.
After creating a git personal access token then you have to follow the below solutions to solve your problems.
Solution 1:
git config --global --unset credential.helper git credential-osxkeychain erase host=github.com protocol=https
git config --global user.name "Enter Your Name" git config --global user.email you@example.com
git clone https://github.com/YOUR-USERNAME/YOUR-REPOSITORY > Cloning into ... Username for 'https://github.com' : Enter your github username Password for 'https://github.com' : Enter your github personal access token here
Solution 2:
Thank you for reading the article. You can contact us if you face any problems.