Storing git credentials with the command:
git config credential.helper store
stores them unencrypted in a plain text under ~/.git-credentials.
In MacOS and Windows, GitHub Help suggests to use keystores which encrypt your credentials using osxkeychain and wincred respectively. In Linux however there is no mention about how to encrypt your git credentials. Are you aware of a way on how to do that ?