TFS with Git tip: use cherry-picking to select changes to commit to a different branch

Posted: (EET/GMT+2)

 

Team Foundation Server (TFS) and Team Services on the web provide support for Git version control. In Git, branching is often a daily-operation, but sometimes, you want to control which commits (changes) in one branch are committed to another branch.

In Git terminology, this is called cherry-picking. Cherry-picking is supported in Visual Studio 2015 with Update 2 onwards. There's a good article on VisualStudio.com on how to do this step-by-step. The same set of articles provides a nice tutorial for Git operations, so if you're not yet familiar in working with Git, you'll find plenty of good information.

Hope this helps!