git checkout target_branch_to_patch #Get into branch to be patched git diff target_branch_to_patch source_branch_patch > file.patch #Get patch file git apply file.patch #Apply patch of differences among branches ;)