Follow the steps to setup SSH keys here: https://help.github.com/articles/generating-ssh-keys
OR
git remote add origin https://{username}:{password}@github.com/{username}/project.git
Update: If you get “fatal: remote origin already exists.” then you have to use set-url:
git remote set-url origin https://{username}:{password}@github.com/{username}/project.git