Problem: You want to test a feature someone has developed, but it only exists in a remote branch which is woefully out of date.
Source
Problem:
You want to test a feature someone has developed, but it only exists in a remote branch which is woefully out of date.
It solves the problem because:
The last point is important because the first drawback of cherry-picking is that it introduces duplicate commits. But in your case, it doesn't matter.
The other drawback is that the commit you are cherry-picking might have functional dependencies based on previous commits (of that old branch).
In other word, its code works only because of other codes of other older commits (which aren't cherry-picked).
That can be trickier to detect.