2017-07-04 git diff patch git git diff master topic_branch > diff.patch patch -p1 < diff.patch diffの取り方はなんでもいい。HEAD~1みたいな書き方でも可能。