cannot push to github repository

i have removed PROJECTJS repo and want to use task-manager-js repo,when i type:

git remote -v

it gives me :

ProjectJS Task-Manager-JS (fetch)
ProjectJS Task-Manager-JS (push)
origin (fetch)
origin (push)
task-manager-js (fetch)
task-manager-js (push)

and it won't let me upload to task-manager-js. it gives :

remote: Repository not found.
fatal: repository ' not found

can someone help? i am using manjaro

2

1 Answer

You haven't removed the reference to the ProjectJS repo. In fact, the default push target for git is origin, which is what it's trying to do.

  • Remove all the remotes with:
git remote remove ProjectJS
git remote remove origin
git remote remove task-manager-js
  • Add the proper origin:
git remote add origin 
  • Push

A few tips:

  • Review GitHub with SSH, it'll make your life much easier.
  • I would also advise you to remove the trailing . from the repo name. While it is technically ok, it's likely going to confuse others when trying to work with your repo.
  • Don't make our lives harder by changing the output of your commands to hide something which can be found with a 3 second GitHub search. If it's public, someone will find it. If you don't want it public, set the repository type to private.
1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like