Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How can I checkout a file from another branch?

ladislavmaxa May 1, 2016

Hi,

if I want to transfer all changes of certain file to another branch (not only cherry-pick), I'm doing it like this:

git checkout develop ./components/Modal.js

This command updates ./components/Modal.js with the changes from develop branch.

Is there a way to do this directly in SourceTree?

 

1 answer

0 votes
Seth
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 2, 2016

No. This is definitely an advanced use case, and I imagine if Atlassian did implement a way to do it in SourceTree, we'd get far more questions like: "how did the version of this file from my other branch get into this one?" or "why did switching my branch only change one file?".

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events