'Permission denied (publickey) error when using Git?

I'm trying to push my project after git commit but i face an error:

git push
sign_and_send_pubkey: signing failed for RSA "/home/acer/.ssh/id_rsa" from agent: agent refused operation
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

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

Is wired because i push other changes before on the same project and this error is present only in this one!!!!



Solution 1:[1]

Solved thanks to $ ssh-add ~/.ssh/id_rsa

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Sébastien Serre