Git: see diff between 2 branches
May 21, 2022
// On the main branch
git diff main..your/branch > diff.patch
// Apply the changes on any branch
git apply diff.patch
// On the main branch
git diff main..your/branch > diff.patch
// Apply the changes on any branch
git apply diff.patch