##With Git version 1.7.9 and later
git config --global credential.helper cache //15minutes
git config --global credential.helper "cache --timeout=3600"
git config --global credential.helper osxkeychain //mac os
git config --global credential.helper wincred //windows