First do:
git config credential.helper store
Then do:
git pull
Warning:
The storage format is a .git-credentials
file, stored in plain-text! You might want to do it through an IDE such as PhpStorm which uses a token instead.
Reference:
https://stackoverflow.com/questions/35942754/how-to-save-username-and-password-in-git