til

Today I Learned: collection of notes, tips and tricks and stuff I learn from day to day working with computers and technology as an open source contributor and product manager

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 passphrase and you should be good to go. If you want to automate even more, check out ssh-agent:

Add the following snippet to your .bash_profile.

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

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

References