Skip to main content

Grabbing a single file from another branch in git


As simple as 

git restore --source origin/HEAD filename

Where origin/HEAD is the branch you want to grab the file from.

Comments