Skip to content

Commit

Permalink
Merge pull request #1825 from 0orja/troubleshoot-github-auth
Browse files Browse the repository at this point in the history
instructions to create github access token
  • Loading branch information
amakarudze committed Jul 10, 2024
2 parents 1a65739 + 0431f76 commit c3473f9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions en/deploy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,14 @@ To https://github.com/ola/my-first-blog.git
Branch main set up to track remote branch main from origin.
```

> **Note** You might encounter the following error when trying to push to GitHub:
```
remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/<your-github-username>/my-first-blog.git/'
```
In this case, follow the instructions from GitHub to [create a personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-personal-access-token-classic). The token should have the 'repo' scope. Copy the value of the token, then try the git push command again. When you are prompted to enter your username and password, enter the access token instead of your password.

<!--TODO: maybe do ssh keys installs in install party, and point ppl who dont have it to an extension -->

Your code is now on GitHub. Go and check it out! You'll find it's in fine company – [Django](https://github.com/django/django), the [Django Girls Tutorial](https://github.com/DjangoGirls/tutorial), and many other great open source software projects also host their code on GitHub. :)
Expand Down

0 comments on commit c3473f9

Please sign in to comment.