From 0431f7635a91a605e98ec55a6676754368122334 Mon Sep 17 00:00:00 2001 From: Oorja Majgaonkar Date: Sun, 21 Apr 2024 15:42:39 +0200 Subject: [PATCH] instructions to create github access token --- en/deploy/README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/en/deploy/README.md b/en/deploy/README.md index d191c1645ee..a2561b9171b 100644 --- a/en/deploy/README.md +++ b/en/deploy/README.md @@ -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//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. + 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. :)