git查看某个文件修改历史

时间:2023-03-09 06:01:31
git查看某个文件修改历史

git查看某个文件修改历史

1、使用git命令

  git whatchanged charge.lua 显示某个文件的每个版本提交信息:提交日期,提交人员,版本号,提交备注(没有修改细节)

  git show 7aee80cd2afe3202143f379ec671917bc86f9771 显示某个版本的修改详情

2、visual studio code可以加载git history插件。

  Press F1 and select/type "Git: View History (git log)", "Git: View File History" or "Git: View Line History".

参考:http://blog.****.net/zxncvb/article/details/39179323