Git Error: Could could not read Username for ‘https://github.com’: terminal prompts disabled

If you have enabled 2FA on github, you can no longer use https:// in the terminal, run the command below, to always force ssh when trying to access github from the terminal.