79622168

Date: 2025-05-14 19:42:14
Score: 1
Natty:
Report link

I've struggled with this forever, so here's the full process I've pieced together from many posts:

  1. Make an access token for your GitHub account. Click on your profile, go to dev settings, and create a classic token.

  2. Check off the following and then click "generate token"

    ✅repo

    ✅workflow

    ✅user

    ✅write:discussion

    ✅admin:enterprise

    ✅admin:gpg_key

  3. Double-check that you have added, committed, and merged all changes.

  4. In the command line interface, type these commands. Replace <space holders> with your personal information.

    a) git config --global user.email <yourEmail>

    b) git config --global user.name “<yourUrerName”

    c) git remote set-url origin <urlForYourRepo>

    (if no repo currently exists, use this command instead) git remote add origin <urlForYourRepo>

    d) git branch -M main

    e) git push -u origin main

  5. Now it should ask for your GitHub username and password. In place of your password, use the access token you made earlier.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Taylor Guasta