CLI to Preview & Check out a GitHub PR

Published: 16 August 2022
on channel: Elijah Manor
3,913
216

In the video, I build up a command to interactively preview and select a GitHub PR to check out in the terminal using the following commands... gh, fzf, awk, and xargs

The final command from the video was…

GH_FORCE_TTY=100% gh pr list | fzf --ansi --preview 'GH_FORCE_TTY=100% gh pr view {1}' --preview-window down --header-lines 3 | awk '{print $1}' | xargs gh pr checkout


On this page of the site you can watch the video online CLI to Preview & Check out a GitHub PR with a duration of hours minute second in good quality, which was uploaded by the user Elijah Manor 16 August 2022, share the link with friends and acquaintances, this video has already been watched 3,913 times on youtube and it was liked by 216 viewers. Enjoy your viewing!