Home > Software design >  fatal: repository not found, after I created and added Personal Access Token
fatal: repository not found, after I created and added Personal Access Token

Time:10-17

  • I'm working on ubuntu 18

  • I created a new git repository.

  • I added some files and created a commit.

  • I have tried to push the last commit with my username and git password and got the following error message:

    remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead

  • I followed the instructions from: Support for password authentication was removed. Please use a personal access token instead :

  • I generated a new token

  • I configured my username and email

  • Now I have tried to push the last commit with my username and I used the created token as password. Now I got a new error:

    remote: Repository not found

  1. What am I missing ?
  2. How can I push to my git repository ?

CodePudding user response:

Try this command

replace the fields as

  • your-personal-access-token with your generated personnel access token
  • your-username with your github username
  • your-repo with the name of the repo in which you want to push

Check whether you have provided repo access to your personel access token

git remote set-url origin https://[email protected]/your-username/your-repo.git
  •  Tags:  
  • git
  • Related