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