Use the below command to get the file from different branch.git checkout <branchname> filepathwithname