uaj9-w
Last Updated: February 25, 2016
·
429
· clawfire
Img 1751

Checkout a specific file from another branch

If you need to checkout a file, but not from the actual branch but from another one

git checkout develop -- myfile.ext
git commit -m "Retrieve a file from develop
Say Thanks
Respond

2 Responses
Add your response

8468
10ca55864735b3ccefb16bd93a1596a7

Interesting trick. Thanks for sharing

over 1 year ago ·
8479
Dsc 0105 0

Little faster: you can leave the double dash (I always do that).

over 1 year ago ·
Filed Under