Checking if a cherry-pick is required
suggest changeBefore you start the cherry-pick process, you can check if the commit you want to cherry-pick already exists in the target branch, in which case you don’t have to do anything.
git branch --contains <commit>
lists local branches that contain the specified commit.
git branch -r --contains <commit>
also includes remote tracking branches in the list.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents