gitにsshでpushする時にssh-agentを介す

要は、sshでpushする時は公開鍵暗号通信するよね。
その時に、ssh-agentに登録しておくと、毎回マスワードやらパスフレーズを入力する手間が省けるでござんす。
以下はその例。ssh-agentの起動方法がevalで評価しているところに注意。

$ git push origin master
error: SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify faile
d while accessing 

fatal: HTTP request failed

$ eval `ssh-agent`
Agent pid 2132

$ ssh-add -l
The agent has no identities.

$ ssh-add ~/.ssh/id_rsa
Enter passphrase for ~/.ssh/id_rsa:

$ git push origin master
$ ssh-add.exe --help
ssh-add: unknown option -- -
usage: ssh-add [options] [file ...]
Options:
  -l          List fingerprints of all identities.
  -L          List public key parameters of all identities.
  -d          Delete identity.
  -D          Delete all identities.
  -x          Lock agent.
  -X          Unlock agent.
  -t life     Set lifetime (in seconds) when adding identities.
  -c          Require confirmation to sign using identities
  -s pkcs11   Add keys from PKCS#11 provider.
  -e pkcs11   Remove keys provided by PKCS#11 provider.


$ git push origin master
Counting objects: 50, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (29/29), done.
Writing objects: 100% (31/31), 2.56 KiB, done.
Total 31 (delta 25), reused 0 (delta 0)

   72199b3..d194b5e  master -> master