比较版本差异

git diff x.x.1 x.x.2 > foo.diff