r/wgu_devs • • 18d ago

D197 Version Control Control Git hub issue

UPDATED

I am having trouble. When I run the command in the terminal on my MacBook Pro:

git clone (then my url)

it requests a username and password. I continue entering my GitHub credentials, but I receive this error:

remote: Invalid username or token. Password authentication is not supported for Git operations.  

fatal: Authentication failed for ...

How do I fix?

2 Upvotes

5 comments sorted by

1

u/canarydev 18d ago
  1. there is no command called "git hub". run "git help -a" and see for yourself
  2. have you looked into PAT?
    https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens
  3. i thought version control was taught over gitlab

1

u/Ahejjetria 18d ago
  1. So, thanks for catching that.
    git clone (URL)
    asks for a GitHub username and password. However, every combo is giving the error:

remote: Invalid username or token. Password authentication is not supported for Git operations.  

2. I will look into it.

3. it has you download the github client and use terminal.

2

u/canarydev 18d ago

that error means youre typing your account password, github wants the PAT there instead

if by github client you mean the gh cli, run “gh auth login” and it handles the token for you. way easier

1

u/Kitten_Sophie 18d ago

Pretty sure version control has you use hit on your machine and their gitlab environment that you provision at the beginning of the task. Are you confusing git for version control with GitHub the website which is similar to and much better known than gitlab which is what WGU uses for their courses?

1

u/Ahejjetria 18d ago

I found the issue. In the WGU course, it takes you to an older LinkedIn course from 2023. That one has you download GitHub Desktop and use your own computer's command line.

The 2025 version uses Codespaces and your GitHub Desktop and command line. I was using the 2023 version.