DEV Community

Raj
Raj

Posted on

Git authentication failed. Use a Personal Access Token (PAT) instead of your password.

You fix the problem you do this step but you learn more git access key you read more also I give example

No Need Password only you want Personal Access Token & key

**What is a Personal Access Token?**
A Personal Access Token (PAT) is a long secret code generated by GitLab or GitHub. It is used to securely authenticate Git commands like:

1.git push
2.git pull
3.git clone

temporary digital key for Git.
How to create a Personal Access Token in GitLab

1. Sign in to your GitLab account.

2. Click your profile picture.

3. Then click edit the profile.

_

  1. Then right side see the access -> see 7 option you click personal access tokens._  _
  2. you can see the generate token click -> show the tow option click legacy token._  _ 6.the enter name description is not compulsory but important only select two option āœ… read_repository āœ… write_repository then click the generate compulsory copy the code because that key don't enter your terminal user password only copy and paste generated key & token._

I give example Personal Access Token (PAT).

Imagine you want to enter your office.

  • Username = Your name (who you are)
  • Password = Your house key
  • Personal Access Token = A special office access card

Your house key opens your house, but it doesn't open the office. Similarly, your GitLab password lets you log in to the website, but Git may require a Personal Access Token instead of your password when you use git push.

Top comments (2)

Collapse
 
mark_tony_160702 profile image
Mark Tony

Great bro šŸ‘

Collapse
 
rajasekar1998 profile image
Raj

thank you