Skip to main content

Posts

Showing posts from April, 2023

Does cherry picking a commit removes it from the original branch in GIT

No, if you cherry-pick a commit from one branch to another and then remove it from the original branch, the commit will not be removed from the other branch. Cherry-picking a commit means that you are applying the changes introduced by that commit to a different branch. The original branch and the new branch are separate entities, and the commit exists independently in each branch. Therefore, if you remove the commit from the original branch, it will only be removed from that branch, and the commit will still exist in the other branch where you cherry-picked it.