ARTICLE DETAIL

资讯详情

深耕网站建设、视觉设计与SEO优化的一线实战洞察。

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

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

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

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

手册说明:

       -mThis 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 isshown when --first-parent option is given; in that case, the output represents the changes the merge brought into the then-current branch.

 

返回列表