Answers for "how to view file at specific commit"

2

show the list of file of a commit

git show --name-only <sha1>
# if we don't want the info to the commit with it 
git show --pretty="" --name-only b5b01b7
Posted by: Guest on June-02-2021
0

git show whole file at commit

$ git show REVISION:path/to/file
Posted by: Guest on September-28-2021

Code answers related to "how to view file at specific commit"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language