How to add host key to known_hosts

Each time I push to github it works fine but I get an error message saying Failed to add the RSA host key to the list of known hosts. How do I add an rsa host key to the file ~/.ssh/known_hosts?