Interact With a Branch, Without Checking it Out.
Tricks for interacting with a branch, without checking it out. Browse a directory, or view the contents of files.
Browse a directory (like ls):
| |
See contents of a file (command as above):
| |
Checkout a specific file or directory from a different branch:
| |
There are other ways to do similar tasks such as git ls-tree and they may have more options. However I find these to be more accessible and easy to remember.