Once one set up two factor authentication with Gihub, one will need to generate a security token to be used as password when issuing a pull request from bsh.
Here’s how to create a security token: https://help.github.com/articles/creating-an-access-token-for-command-line-use/
Use the security token in place of password when login.