Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ローカル ブランチからのすべてのコミットを含むパッチを生成したいと考えています。マスターとは比べ物にならない。(コミットの一部はすでにマスターにマージされているためです。)
ベースコミットのSHA-1でgit diff srchash..HEAD > whatever.patch利用できます。srchashブランチが現在チェックアウトされていない場合は、branchname代わりに使用しますHEAD
git diff srchash..HEAD > whatever.patch
srchash
branchname
HEAD