Say I have my own git repo with a bunch of text files in it. There is another different git repo that someone else owns with a bunch of text files that all differ from my ow
Try to add the other-repo then bring its branches including your target-branch
git remote add other git@github.com:username/other-repo.git
git fetch other
Switch to the branch you want to merge in the target-file.ext:
git checkout your-branch
Merge the target file into yours:
git checkout -p other/target-branch target-file.ext