Hexo got error on deploying to github

Today when I tried to deploy, it throws me this. It was working fine but just not today.

bash: /dev/tty: No such device or address error: failed to execute prompt script (exit code 1) fatal: could not read Username for 'https://github.com': No error

And VS code keeps popping up the dialog for git's username and password.

Google it, most of people handle it by switching to SSH.

But it actually can be fixed by 2 simple steps