git config credential.helper store
Enable "Use Credential Helper" in Settings -> Version Control -> Git.
In Every project you have to config with this terminal code.
*This is a temporary solution until find anything related to this issue
Error:- "Push failed, Invocation failed Unexpected end of file from server"
Enter This command in terminal/CMD
git config --local user.name 'your username'
git config --local user.password 'your password'
git config --global credential.helper store
Solution:- Also make sure, "Use Credential help" is checked in setting > VCS > Git. Android Setting image