Skip to main content
more legible example
Source Link
adrock20
  • 337
  • 2
  • 8

Use git format-patch to slice out the partparts of the commit(s) you care about and git am to apply it to another branch

git format-patch <sha>develop...branch-with-file-commits -- path/to/file git checkout other-branch git am *.patch 

Use git format-patch to slice out the part of the commit you care about and git am to apply it to another branch

git format-patch <sha> -- path/to/file git checkout other-branch git am *.patch 

Use git format-patch to slice out the parts of the commit(s) you care about and git am to apply it to another branch

git format-patch develop...branch-with-file-commits -- path/to/file git checkout other-branch git am *.patch 
Source Link
adrock20
  • 337
  • 2
  • 8

Use git format-patch to slice out the part of the commit you care about and git am to apply it to another branch

git format-patch <sha> -- path/to/file git checkout other-branch git am *.patch