简体   繁体   中英

Remote: Repository not found but Error: remote origin already exists

I am all of a sudden having trouble doing a push (ie git push origin master ). When I do I get prompted for my personal access token which is not expired (I double checked). Once I log in, then I get the error:

remote: Repository not found

fatal: repository 'https://github.com/username/repo-name/' not found

I tried git remote set-url origin https://github.com/username/repo-name which produced no errors but when I try the push again it the same thing as above happens.

Any help would be much appreciated. Thanks

I found this answer: Git - remote: Repository not found

I needed to check the write:packages . I forgot to do that when I created my new PAT.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM