Skip to content

Commit c3473f9

Browse files
authored
Merge pull request #1825 from 0orja/troubleshoot-github-auth
instructions to create github access token
2 parents 1a65739 + 0431f76 commit c3473f9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

en/deploy/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,14 @@ To https://github.com/ola/my-first-blog.git
151151
Branch main set up to track remote branch main from origin.
152152
```
153153

154+
> **Note** You might encounter the following error when trying to push to GitHub:
155+
```
156+
remote: Support for password authentication was removed on August 13, 2021.
157+
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.
158+
fatal: Authentication failed for 'https://github.com/<your-github-username>/my-first-blog.git/'
159+
```
160+
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.
161+
154162
<!--TODO: maybe do ssh keys installs in install party, and point ppl who dont have it to an extension -->
155163

156164
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. :)

0 commit comments

Comments
 (0)