Using Bitbucket, how do I get commits from one branch into another?
Solution 1
As Tim suggested, you'll want to merge new-features into fix-these.
You can do this on Bitbucket by navigating to the Compare page (see sidebar), selecting "fix-these" as destination, "new-features" as source and then hitting the Merge button in the top-right corner.
Solution 2
Use git cherry pick. It lets you pick commit and add them over other branches.
git cherry-pick <commit>
Example:
git cherry-pick 123456
This will add the commit on the current branch.
Solution 3
You cant, you'll have to use git commands. Would have been nice with a web interface for it like pull requests.
Roger_S
Develop mobile apps in JavaScript, using Appcelerator Titanium and React-Native. E-book enthusiast since Rocket-e-Book in 1999.
Updated on August 02, 2022Comments
-
Roger_S almost 2 years
At my new job, where we use git with Bitbucket, we have a master branch, a new-features branch and a fix-these branch.
I've been making all my changes to the fix-these branch. After committing them, I push them to origin/fix-these using SourceTree. So far, so good.
In Bitbucket, how do I make the fix-these branch so that it includes the few commits that have been made recently to new-features? (And then I just "pull origin/fix-these" to make my local copy current, right?)
-
chrisinmtown over 3 yearsIn 2020 Bitbucket still does not support a cherry-pick workflow in their web UI? Sad.
-
Pramesh Bajracharya about 2 years2022 and they still do not have it. :/
-
Asif A. Sohan about 2 years2022 March still do not have it :D