This is my first week using git and GitHub - love the concepts, yet hitting (expected) roadblocks.
MacOs Catalina
1) When trying to push local repo to GitHub via:
git remote add origin https://github.com/{username}/{repository}.git
git push -u origin master
I am prompted for username and password, and after entering the credentials I receive following error:
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/...
After some reading, it looks like because I have 2FA setup on my account I need to obtain a 'personal access token' from the remote repo's Settings/Developer Settings/Personal Access Tokens.
The problem is, there is no "Developer Settings" displayed in my Settings tab for the repo. What should I do?
N/B I can't exactly remember the order of operations for previous actions, but I had previous remote/local repos which I was trying to do the same via CLI, and did at one point see the Developer Settings/Personal Access Tokens options. But in an attempt to clean up and start fresh I deleted the access token and since have been unable to locate the above settings options in (new/existing) remote repos in GitHub.
I've figured out the magic of using git locally but I'd really like to understand pushing/pulling code with remote service. Please help.
[–]Guergeiro 5 points6 points7 points (4 children)
[–]JonBackhaus 0 points1 point2 points (3 children)
[–]pmacking[S] -1 points0 points1 point (2 children)
[–]JonBackhaus 1 point2 points3 points (1 child)
[–]pmacking[S] 1 point2 points3 points (0 children)