3

I get this error when I try to push it to a repo.

git push origin master

remote: Repository not found.

fatal: repository 'https://github.com/username/projectname.git/' not found

The url works.

alien
  • 61
  • 1
  • 7

1 Answers1

1

check remote repo :

git remote -v

if there is not repository then add it :

git remote add origin https://github.com/username/repositoryName

pull the repository :

git pull

git add and commit by :

git add .
git commit -m "your message here"

push to repository :

git push -u origin master
Saurabh Mistry
  • 12,833
  • 5
  • 50
  • 71
  • I'm not sure these steps will help resolve the issue as the OP has shown that a remote url exists. The issue seems to be whether or not the remote repo exists and the OP has access to it. – evolutionxbox Jun 06 '18 at 10:01