##Create a new repository on the command line
touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin [email protected]:alexpchin/<reponame>.git
git push -u origin master
##Push an existing repository from the command line
git remote add origin [email protected]:alexpchin/<reponame>.git
git push -u origin master
@nettcaster87. you should using PAT (Personal Access Token) for authentication.
$ curl -u username:token https://api.github.com/user
The current methods are depreciated
Here's the reference.
https://docs.github.com/en/rest/overview/other-authentication-methods#via-oauth-and-personal-access-tokens.
https://docs.github.com/en/rest/guides/basics-of-authentication#accepting-user-authorization.