Under linux
Under ~/, touch creates the file .git-credentials, edit this file with vim, and enter the content format:
touch .git-credentials
vim .git-credentials
https://{username}:{password}@github.com
2. Execute git config --global credential.helper store in the terminal