git: merge所做修改用git log -p看不到

解决: 增加-m参数可以看到merge的修改

$ git log -p -m app/models/banners.py

手册说明:

       -m
           This flag makes the merge commits show the full diff like regular commits; for each merge parent, a separate log entry and diff is generated. An exception is that only diff against the first parent is
           shown when --first-parent option is given; in that case, the output represents the changes the merge brought into the then-current branch.

 

posted @ 2026-01-19 14:03  刘宏缔的架构森林  阅读(1)  评论(0)    收藏  举报