Creating pull request with hub pull-request CLI

Hub, GitHub command-line wrapper for git allows you to create pull request straight from your terminal. This way, when a feature you’re working on, you can save some time, skipping creating pull request GitHub. Even if you use tool like Vimium, hub pull-request can be a little faster.

Run hub pull-request and enter your GitHub password. If you have enabled two-factor authentication, enter the code you will receive (via SMS for instance). The last step is to generate token so that hub can create pull requests on your behalf.

If you see ‘bad credentials’ error, remove ~/.config/hub config and try to run hum pull-request again.