Deleted:Github access with token headache
1
1
Entering edit mode
4 months ago

I am busy setting up a bioinformatic pipeline, and uploaded it on Github using git push. I generated an access token to access my directory without using a password (which is outdated anyway). The first time I use the command below, the git push is flawless.

git init
git add .
git commit -m "first commit" .
git remote add origin https://github.com/<GITHUB_USERNAME>/<REPOSITORY_NAME>.git
git push https://<GITHUB_ACCESS_TOKEN>@github.com/<GITHUB_USERNAME>/<REPOSITORY_NAME>.git

However, using this last git push command afterward generate a password prompt, and of course the authentication fail afterward.

Password for 'https://<GITHUB_ACCESS_TOKEN>@github.com': 

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.

Curiously, the webpage indicated above fail to mention tokens and their use. Are they outdated as well?

Github git offtopic • 662 views
ADD COMMENT
This thread is not open. No new answers may be added
Traffic: 1287 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6