I am working on a branch B. I created my branch and checked out from the latest master commit. My colleague worked on a branch A. He checkout a long time ago from master so he's behind it:
--------- A1
/
/
/
--------- M1 --------- M2 --------- M3 --------- M4 --------- M5 --------- B1
In his branch he worked on a lot of files and I only need some of them. Let's call them File1.txt, File2.txt and File3.txt. I would like to merge these files to my branch. My question is: What's the approach to follow in this case? Should I merge/rebase on top of his outdated branch ? Is there a way to just get these 3 files and merge them to my current working branch and get a B2 commit?