If two factor authentication is enabled on GitHub , then when trying to commit to a git repository , you might face the following error message :
… Read More remote: Invalid username or password. fatal: Authentication failed for 'https://github.com/mohamad-wael/tmp.git/'
A possible solution