Git Checkout Recent Branch with Search & Preview

Published: 23 August 2022
on channel: Elijah Manor
4,507
298

A short video where I build up a command to check out a recent git branch with search and preview diff functionality

The final command from the video is…

git branch --sort=-committerdate | fzf --header "Checkout Recent Branch" --preview "git diff {1} --color=always" --pointer="" | xargs git checkout

#terminalrocks


On this page of the site you can watch the video online Git Checkout Recent Branch with Search & Preview with a duration of hours minute second in good quality, which was uploaded by the user Elijah Manor 23 August 2022, share the link with friends and acquaintances, this video has already been watched 4,507 times on youtube and it was liked by 298 viewers. Enjoy your viewing!