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
andgit 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
andemail
Now I have tried to push the last commit with my
username
and I used the created token aspassword
. Now I got a new error:remote: Repository not found
- What am I missing ?
- 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