I have BranchA which was cut off from master 6 months ago. On specific file: BranchA -> dir1/dir2/abc.txt was done like 300 commits. Meantime on master was done like 3000 commits, but none of them touched master -> dir1/dir2/abc.txt. A few days ago was created a new branch from master -> BranchB. I try to move a file from BranchA -> dir1/dir2/abc.txt to BranchB -> dir1/dir2/abc.txt and have all its history of commits that were done on BranchA -> dir1/dir2/abc.txt.
Sometimes commit on the file BranchA -> dir1/dir2/abc.txt was done with few other files but I am not interested in it.
How I can move the file from BranchA to BranchB with preserving history?