Git ‘cherry-pick’ individual file

Today the situation came up where I wanted the latest of a file in another branch. But only that file. Didn’t want to merge and reject so that get’s rid of cherrypick and merge as options.

Luckily there is a way to do this just using the checkout command.

[code]git checkout feature/meow Source/Cat.cs[/code]


Sauce :

Leave a Reply

Your email address will not be published. Required fields are marked *