I could not find a tutorial for all SourceTree commands so I'm somewhat unsure if this command does what I think it does.
I have a branch which was branched from master some time ago. Let's call it BranchX.
Master branch has remote origin/master and BranchX also has origin/BranchX.
Consider these two scenarios:
1) Now some people have done their work on BranchX and I want to merge BranchX into master. Currently I have checked out master branch.
Can I use the command "Pull origin/BranchX into current branch" to fetch origin/BranchX into my local repo and then merge BranchX code into my current working copy (which is master)?
2) I'm working on BranchX and I want to update it with latest changes on origin/master.
Can I use the command "Pull origin/master into current branch" to fetch origin/master into my local repo and then merge master code into my current working copy (which is BranchX)?
Essentially - is "Pull origin/branchname into current branch" meant as a replacement for so-often used process:
checkout master
pull origin/master
checkout BranchX
merge master into BranchX
?
Or does it do something different or something more than I think?
I think it does exactly what you think it does
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.