【Git】http接続の認証情報を記録する

sshでやれるならいいんだけど、httpでしかできない場合、保存したほうがいいよね。
ただ、storeオプションはファイルに平文で書かれてしまうので注意。
cacheオプションでプロセスに記録し、時間が過ぎると消されるみたい。
1 2 3 4 |
root@PROVIDENCE:/# git config --global credential.helper store root@PROVIDENCE:/# ls -l ~/.git-credentials -rw------- 1 root root 35 Jul 22 18:12 /root/.git-credentials |