git-credentials

git config --global user.email "user@email.com"
git config --global user.name "first last"
git config --global credential.helper store

I also prefer:

git config --global push.default simple
git config --global pull.rebase false