Skip to content

Instantly share code, notes, and snippets.

@abraithwaite
Created February 28, 2024 03:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abraithwaite/1a63282b1fd0fb03df7946f8367857f1 to your computer and use it in GitHub Desktop.
Save abraithwaite/1a63282b1fd0fb03df7946f8367857f1 to your computer and use it in GitHub Desktop.
git-read-branch
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