Ever need to read a single file from another branch that's not currently active in git? I use this probably weekly to do just that. Useful in cases where you want to cherry pick a file from another branch (if the file was changed over multiple commits).

https://gist.github.com/abraithwaite/1a63282b1fd0fb03df7946f8367857f1

git-read-branch

git-read-branch. GitHub Gist: instantly share code, notes, and snippets.

Gist
@Caust1c git show branch:file is another way
@jsanford Wow, TIL! This is waay better. Thank you! How did I not know about this?
@Caust1c @jsanford Also git restore --source COMMIT [-p] filename

@glacials @jsanford

I've referenced this thread multiple times since y'all both pointed me to better ways! 😄