I tried to contribute to Bioconda. However, I got the following error:
$ git clone https://github.com/mictadlo/bioconda-recipes.git
Cloning into 'bioconda-recipes'...
remote: Enumerating objects: 312339, done.
remote: Total 312339 (delta 0), reused 0 (delta 0), pack-reused 312339
Receiving objects: 100% (312339/312339), 332.37 MiB | 9.93 MiB/s, done.
Resolving deltas: 100% (172897/172897), done.
Updating files: 100% (18842/18842), done.
$ cd bioconda-recipes/
$ git remote add upstream https://[email protected]/bioconda/bioconda-recipes.git
$ git checkout master
Already on 'master'
$ git push origin master
Username for 'https://github.com': mictadlo
Password for 'https://[email protected]':
remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.
fatal: Authentication failed for 'https://github.com/mictadlo/bioconda-recipes.git/'
What did I miss?
Thank you in advance.
CodePudding user response:
Double-check the "password" you have entered when trying to push back to your own repository.
Since Aug. 2021, you would need to use a PAT (Personal Access Token).
You can also, for testing, try with an SSH URL, provided you have registered a public SSH key to your profile.
CodePudding user response:
For pushing code into the repo, you need to add an SSH key to your GitHub.
Follow this link for more information: https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent