1

I am trying to push to a remote private repository for the first time. Please note that I was successfully able to clone as well as commit the changes I made. And I am using https protocol. But when I use the following command;

git push origin

Then I get the error; repository not found. Please note that repository exists for sure. May I know whether I need to add my username and password to the url.

Help is appreciated.

jay
  • 1,319
  • 6
  • 23
  • 42

1 Answers1

0

Please note that I was successfully able to clone as well as commit the changes I made

A commit is a local operation only: you will succeed to commit, irrespective of the nature of the remote repository (private or public)

If git remote -v does show an HTTPS URL, check your credential helper (which might have cached the wrong credentials): git config credential.helper. You can clear that credential cache, try and push again.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250