I create my GitHub repository, and then I run this command using Git base:
git init
git add -A
git commit -m 'my commit'
git remote add origin git@github.com:myprofile/my-new-project.git
git push -u -f origin master
But after running the last command, my project did not push in Git.
It gave me an error:
git push -u -f origin master
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
How can I push my project and why do I get this error?