copy file from other branch git checkout targetBranch git checkout sourceBranch filename.txt File "filename.txt" is now available in the source branch.