Neil Meyer
Neil Meyer

Reputation: 587

Why do I get a 'User name not found' error with the GitHub access token?

I'm trying to use the access token with GitHub. I'm trying to follow the following commands. A link for which can be found here.

For Linux based Operating Systems: For Linux, you need to configure the local GIT client with a username and password.

$ git config --global user.name "your-github-username"

$ git config --global user.email "your-github-email"

git config -l

But when I use the username command, I get a 'command not found' error. I'm probably missing something completely trivial, but I cannot seem to get it working.

I get the following error message.

Username for 'http://github.com' : 'my_username' username: command not found

Upvotes: -1

Views: 675

Answers (1)

Matt
Matt

Reputation: 13953

The formatting and command block in the answer your were following were confusing. I corrected them and now they read as follows:

$ git clone https://github.com/YOUR-USERNAME/YOUR-REPOSITORY
> Cloning into `YOUR-REPOSITORY`...
Username: <type your username>
Password: <type your password or personal access token (GitHub)

The command you execute is git clone ... and the CLI is then going to interactively ask for your username and password (PAT for GitHub). Enter this information when asked and confirm with ENTER.

Upvotes: 1

Related Questions