git 提交特定文件
How to view a file at a specific commit/revision in git?
如何在git中的特定commit / revision中查看文件?
You can use git show
to view a file’s content at a specific commit in git: https://www.systutorials.com/docs/linux/man/1-git-show/
您可以使用git show
在git中的特定提交时查看文件的内容: https : //www.systutorials.com/docs/linux/man/1-git-show/
$ git show REVISION:/path/to/file
You can also save a copy by
您还可以通过以下方式保存副本:
$ git show REVISION:/path/to/file >file.copy
Answered by Eric Z Ma.
埃里克·马(Eric Z Ma)回答。
翻译自: https://www.systutorials.com/how-to-view-a-file-at-a-specific-commit-in-git/
git 提交特定文件