您知道如何查看多个非连续提交与当前提交之间的差异?我们假设我有一个用户故事''以及以下是我在实施时所做的所有更改:
$ git log1 | grep '457'
* 3451c32 - (2 days ago) 457: Sql for converting from kJ/g to kJ/100g
* 51ebc26 - (3 days ago) 457: Refactoring code
* 4e0c3de - (3 days ago) 457: Refact constructDataForGrid
* 50fcef2 - (8 days ago) 457: Dont show value while empty or zero
* a901da1 - (8 days ago) 457: Dynamic conversion done
* 6adf6e4 - (8 days ago) 457: Refactor constant: DBTechnicalDataID and UITechnicalDataID
* bb961eb - (8 days ago) 457: Show total unit on create
* fea5bb6 - (9 days ago) 457: Add comment for TabDataTag.java
我如何做git diff 457 HEAD
之类的内容,其中457包含我上面的所有更改?
仅供参考,git log1取自此处:Pretty git branch graphs
答案 0 :(得分:-1)
git log --grep <story name/number>
示例
git log --grep 457