I have simply created a repository in github. Using the commands I am trying to upload a project to my new repository. But giving me errors after this command:
git remote add origin https://github.com/nafeeur10/rental.git
Error:
fatal: remote origin already exists.
Then
git push -u origin master
Error:
git@github.com: Permission denied (publickey). and the repository exists.
What is the problem and what should I do actually?