Skip to content

Home

Copy a file from another branch

Copies a file from another branch to the current branch.

git checkout <branch> <file>

# Examples
git checkout patch-2
git checkout patch-1 "30seconds.txt"
# `patch-2` branch now contains the 30seconds.txt file from `patch-1`

More like this

Start typing a keyphrase to see matching snippets.