GIT and GitHub: how to avoid entering credentials every time

Do you have some repos and have to enter the credentials everytime you connect to github? the solution is given here:

http://stackoverflow.com/questions/6565357/git-push-requires-username-and-password#answer-6565661

It is caused because you referred to the https instead of the git address. So you will have to do the following:

git remote set-url origin git@github.com:username/repo.git