-1

I own a mac and when ever I try to type

git push origin master

I get this error

fatal: 'origin' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Also I do not wish to switch to ssh.

Thanks

notacommie
  • 9
  • 1
  • 6

1 Answers1

0

You didn't add an origin server:

git remote add origin https://domain.com/user/repo.git

You can check your remote added servers with git remote -v:

git remote -v
origin  https://domain.com/user/repo.git (fetch)
origin  https://domain.com/user/repo.git (push)

You can go to this site to read more.

Giovanni Benussi
  • 2,497
  • 2
  • 26
  • 28
  • so i did just that, it seemed to work, but i encountered another problem, when I pushed it gave me this remote: Permission to mainuser/repo.git denied to user2. fatal: unable to access 'https://github.com/mainuser/repo.git/': The requested URL returned error: 403 – notacommie May 03 '16 at 02:23
  • Take a look at this: http://stackoverflow.com/questions/7438313/pushing-to-git-returning-error-code-403-fatal-http-request-failed – Giovanni Benussi May 03 '16 at 02:24