git查看区间提交文件列表记录.md 652 B

#杂七杂八常识

可以查看俩提交区间的文件列表名字: 举例说明,例如知道提交记录的前置guid是1a1bb406 也知道提交记录的后置guid是3947722b

可以通过这种形式,将区间的文件列表,打印到这个versionlog文本内:

 git log --name-status 1a1bb406..3947722b >.\versionlog

![[Pasted image 20230301162753.png]]

格式乱码一般是非utf8导致的,因为路径都是英文,所以暂不处理

![[Pasted image 20230301162806.png]]

如果需要处理,实际上,通过python接口,打开即可;

    StatusLog = open("./versionlog",'r',encoding= "utf-8")