git查看某个文件的修改记录
先使用git log filename 或者 git log --pretty=oneline filename查询到某个文件的提交历史记录
PS C:\Users\10128\Desktop\Note\main> git log --pretty=oneline instance
35e52488bbfb0b478f637db8d2af34a489f34459 Update:模块化
cc78b6a86c4b2d4b22dcb9b180f7d45d5af00cfa Update: commonjs update
7f6c2b887df99fe2a9e2245295765b57dd652f2b Update: http and so on
接着使用git show commitId 找到此次修改的始作俑者与修改时间以及内容,方便接下来的工作开展
PS C:\Users\10128\Desktop\Note\main> git show 35e52488bbfb0b478f637db8d2af34a489f34459
commit 35e52488bbfb0b478f637db8d2af34a489f34459
Author: xxx
Date: Fri Feb 19 00:28:55 2021 +0800
Update:模块化