Show past file and directory contents using Git command
Display contents of hello.txt file 5 commits before:
git show HEAD~5:hello.txt
Display the tree of first version of software:
git show v1.0.0:
Generally, just separate revision and path with colon:
git show awesome-feature:app/models
git show awesome-feature:app/models/user.rb
It's really that simple :)
Written by Adam Stankiewicz
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
khasinski
591.1K
dmichaelavila
500.4K
Related Tags
#git
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#