List / Read files in another git branch
Examples showing from one branch reading the develop branch
List files in a folder from another branch
git ls-tree -r --name-only develop helpers/
Read a file from another branch
git show develop:helpers/Encryption.php
Written by Stilliard
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Branch
Authors

niklongstone
42.01K

muzzlefork
11.98K
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#