Posted in Chef DevOps git

Pulled your chef cookbooks from git over https only to find you need to push them over SSH?

for I in $(find ~/chef-cookbooks -type d -name “cookbook*”); do cd $I NAME=”$(basename ${I}).git” git remote set-url origin${NAME} git…

Posted in git

Don’t want to have to type your GIT credentials in every-time?

To cache your credentials for 24 hours:- git config –global credential.helper “cache –timeout=86400”