Today I Learned: collection of notes, tips and tricks and stuff I learn from day to day working with computers and technology as a developer

View project on GitHub

Avoid being prompted for password

Being prompted for password on every Git operation can get tiresome in the long run.

$ ssh-add ~/.ssh/id_rsa

Enter your pasphrase and you should be good to go. If you want to automate even more, check out ssh-agent:

Add the following smippet to your .bash_profile.

if [ -z "$SSH_AUTH_SOCK" ] ; then
  eval `ssh-agent -s`

These are general ssh tricks, so they can be used in other cases where ssh is put to use.