How do I copy a version of a single file from one Git branch to another?
Run this from the branch where you want the file to end up: General formulas: Some notes (from comments): Using the commit hash, you can pull files from any commit This works for files and directories Overwrites the file myfile.txt and mydir Wildcards don’t work, but relative paths do Multiple paths can be specified An alternative: