2018-10-11 git show to view file

2018-10-11  本文已影响7人  五大RobertWu伍洋

git view file in specified commit

You can use git show to view a file’s content at a specific commit in git: http://www.pkill.info/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

[Administrator@RobertNote@/g/Projects/blog@16:43:04]

11413 $ git show 7a615a5:routes/cpc.js

上一篇 下一篇

猜你喜欢

热点阅读