Photo by Philipp Katzenberger on Unsplash
Creating a personal access token to Git operations
💡Personal access tokens are an alternative to using passwords for authentication to GitHub when using the GitHub API or the command line.
Personal access tokens are intended to access GitHub resources on behalf of yourself.
1.- Log in to your account on GitHub. In the upper-right corner of any page, click your profile photo, then click Settings, click on Developer settings tab -> Personal access tokens -> Tokens (classic) and press "Generate new token".
2.- Give your token expiration, select which permissions to grant the token and press "Generate token".
3.- Copy the token created.
4.- When you are going to do git push
, paste the token in the window "Connect to GitHub".