I should programmatically capture the git client messages to understand which type of error occurred (auth failure, auth required, etc.).
For example :
remote: Invalid username or password.
If you log in via a third party service you must ensure you have an account password
set in your account profile.
fatal: Authentication failed for 'https://username:[email protected]'
Is this a standard message (that doesn't depend by the git client version) so I can parse it in order to understand that a authentication failure happened ?
Thanks in advance
Git messages DO change from version to version. And they can change based upon the local settings of the repository and the response the remote origin is designed to output in the case of errors. Some Git servers always respond with the same message regardless of the error - be it that authentication failed or that you don't have permissions to access the repository. GitHub's responses are different from BitBucket's for example.
What is the requirement of capturing these messages? What is your end goal? Are you attempting to log the output and bring it to the attention of an administrator?