- 查看某个文件的历史提交记录
git log --pretty=oneline [your_file_name]
- 查看某个文件在所有分支的历史提交记录
git log --graph --all [your_file_name]
- 查看某次提交某次commit中的某个文件内容
git show [commit_it]:your_file_name
- 在三的基础上将文件内容输入到文件中
git show [commit_it]:[your_file_name] >> [file_name]
网友评论