git checkout a single file from another branch and put in different folder January 6, 2024 by Tarik You have 2 options chain 2 commands, git checkout other_branch -- file.txt && git mv file.txt folder/file.txt or you can use worktree