Created
February 28, 2024 03:18
-
-
Save abraithwaite/1a63282b1fd0fb03df7946f8367857f1 to your computer and use it in GitHub Desktop.
git-read-branch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function git-read-branch() { | |
git ls-tree -r $1 | grep $2 | awk '{print $3}' | xargs git cat-file blob | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment