Skip to content

Instantly share code, notes, and snippets.

@abraithwaite
Created February 28, 2024 03:18
Show Gist options
  • Select an option

  • Save abraithwaite/1a63282b1fd0fb03df7946f8367857f1 to your computer and use it in GitHub Desktop.

Select an option

Save abraithwaite/1a63282b1fd0fb03df7946f8367857f1 to your computer and use it in GitHub Desktop.

Revisions

  1. abraithwaite created this gist Feb 28, 2024.
    3 changes: 3 additions & 0 deletions git-reach-branch
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    function git-read-branch() {
    git ls-tree -r $1 | grep $2 | awk '{print $3}' | xargs git cat-file blob
    }