This is a series of articles related to Source Control or Version Control issues, from a stand-alone app, such as MS SourceSafe, to a Server app, such as MS TFS (Team Foundation Server), to web services such as GitHub, AWS, and MS Azure DevOps. We tried to categorize this series of articles as Source Control or Version Control, but this site does not have these categories, so we put the articles in the DevOps category, as explained in the wiki:
DevOps is a set of practices that combines software development (Dev) and IT operations (Ops). It aims to shorten the systems development life cycle and provide continuous delivery with high software quality.[1] DevOps is complementary with Agile software development; several DevOps aspects came from the Agile methodology.
The structure of this article series will cover,
- Stand Alone App:
- MS Source Safe
- Server App
- MS TFS (Team Foundation Server)
- Online (Cloud) Centralized Service:
- MS Azure: DevOps
- Boards
- Repos
- Pipelines
- Test Plans
- Artifacts
- GitHub
- AWS GitHub Enterprise
- MS Azure: DevOps
- Distributed App:
- Git
Because these are huge topics, I will not go step by step, instead, each section will be relatively independent to become a reading unit.
- Source Control (1), MS Source Safe --- Stand Alone App
- Source Control (2), MS TFS --- Centralized Server App
- Source Control (2-1), TFS --- Comparison
- Source Control (2-2), TFS --- Merge
- Source Control (2-2), TFS --- Shelving
- Source Control (3), MS Azure DevOps (GitHub, Jira) --- Centralized Service
- Source Control (4), Git --- Distributed App
- Source Control (4-1), Git --- Configuration
- Source Control (4-2), Git --- Configured to Connect to DevOps and GitHub
- Source Control (4-3), Git --- Cherry Pick in Visual Studio --- this article
- Source Control (4-4), Git --- Recover Git Tree: Reflog/Reset
- Source Control (4-5), Git --- Recover Deleted Branch
- Source Control (4-6), Git --- Revert
- Source Control (4.7), Git --- Get Specific Version or Commit
- Source Control (4.8), Git --- Get Specific Version or Commit in practice
- Source Control (4-9), Git --- Merge: Fetch, Pull, Push and Sync
- Source Control (5), GitHub access (setup connection)
- Source Control (6), DevOps access (setup connection)
- Source Control (7), GitLab access (setup connection and Clone to Local)
- Source Control (8), Git, Azure Repos, and Visual Studio (Interaction)
- Source Control (9), Push into Git Hub and DevOps
- Source Control (10), Git Hub, DevOps Publish
Introduction
This is the content of the article:
- Introduction
- A - What is Cherry Pick
- B - When to Use Cherry Pick
- C - How to make Cherry Pick
- D - Demo for VS 2019, New Git User Experience, or VS2022
- E - Dome for Visual Studio Team Explorer, compatible with VS 2017
A - What is Cherry Pick
Cherry-Pick is a process to copy commits from one branch to another. Assume we have a repository with the following branch state:

where,
- Main branch has commits: a - b - c - d
- Feature branch has commits: a - e - f - g
After running Cherry Pick, the git repository will be like this

The f commit has been successfully picked into the main branch
B - When to Use Cherry Pick
As experience of myself, when I work on one feature, if you open a feature branch at the beginning, after you finish the task, in the time period, you have a good chance to have the code conflict with others. Then when you commit them into Git, and push to server, and merge to master, you probably have to handle the conflict issue. So, usually I would make the code change in one of old branch, when the code change done, then make a new branch from master, that is guarantee to have the latest code, then I tried to commit my new code into the new created new branch, then I will have less chance to have conflict with other. However, if I work quite long time, I probably already commit my code into another branch, say, an old branch, or working branch. At this situation, I need to use Cherry Pick, to get the exact commit I want into the new branch.
Anyway, I feel the Cherry Pick is very useful in the game of Git Repository.
C - How to Make Cherry Pick
Assume we have two branches, one is the Target Branch for the Cherry Pick action, while another branch is the source Branch

































Join the conversation! Your thoughts help the community grow.