Question: where are git credentials stored linux?
Answer: git-credentials and $XDG_CONFIG_HOME/git/credentials , and credentials will be written to ~/. git-credentials if it exists, or $XDG_CONFIG_HOME/git/credentials if it exists and the former does not. See also FILES.