Git: Issue with Git Clone (token error)
If you are attempting to clone your GitLab/GitHub repository to your local computer (via Command Prompt) or an IDE (via VSCode Terminal, etc.) and you come across one of these errors, please follow the steps outlined below for the error you encounter:
Token Error
If you have run the "git clone" command with a generated toke, but receive an "incorrect password" error message, generate another token and try again.
Incorrect Password
If you run the "git clone" command and are asked for a username and password, please generate a token and use it as the password. If you are unsure of how to create a token, please follow these steps:
- Visit the GitLab/GitHub website.
- Click on your profile picture and select Settings/Account Settings.
- Navigate to the access tokens tab.
a. For GitLab, this can be found in the Access Tokens Tab
b. For GitHub, this can be found in Developer Settings > Personal Access Tokens > Tokens (classic) - Select the Add/Generate New Token button.
- Copy the generated code to the clipboard.