I am trying to login through term in new machine to push. I want to start coding please help! #178436
Replies: 3 comments
-
|
Beta Was this translation helpful? Give feedback.
-
|
Was able to authenticate using github cli and then following the steps it redirected me to the browser where I was able to login. I used the exact same creds when I tried logging in directly in the term. Hopefully this issue doesn't come up later but that's a future me problem. |
Beta Was this translation helpful? Give feedback.
-
|
You'll generate a special token on the GitHub website and use that token as your password in the terminal. How to Create and Use a PAT Navigate to Settings: Click your profile picture in the top-right corner and go to Settings. Find Developer Settings: Scroll down the left-hand menu and click Developer settings. Select Tokens: Click Personal access tokens (not "GitHub Apps" or "OAuth Apps"), then select Tokens (classic). Generate New Token: Click Generate new token (classic). Note: Give your token a descriptive name (e.g., "New Machine Terminal"). Expiration: Set an expiration date. 30 or 90 days is common. Select Scopes: This is the most important step! To push code, you must check the box next to the repo. This grants full control of your repositories. Generate and Copy: Scroll to the bottom and click Generate token. COPY YOUR TOKEN! GitHub will show you the token only once. Copy it immediately. If you lose it, you have to delete it and create a new one. Back in Your Terminal When the terminal prompts for Username: Enter your GitHub username. When the terminal prompts for Password: Paste the Personal Access Token you just copied. It should now work! |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Why are you starting this discussion?
Question
What GitHub Actions topic or product is this about?
Workflow Configuration
Discussion Details
I am trying to onboard things for my new machine, I am putting the correct password to login to github via the terminal to push but it's saying Authentication failed someone please help I have tried everything and I am so sick of this I want to get to coding!!!
Beta Was this translation helpful? Give feedback.
All reactions