After you utilize the cherry pick command in Git to move a commit’s changes from one branch to another, make sure to go back and clean up your repo history. Go back and checkout the original branch and do a hard reset on the parent commit. This will remove the duplicate commit.
![](https://www.gitkraken.com/wp-content/uploads/2021/03/og-git-commands-300x157.png)