Edit (new tab) Copy file from another branch git checkout another-local-branch path/to/file.js https://stackoverflow.com/questions/2364147/how-to-get-just-one-file-from-another-branch