Clean Up History After Cherry Picking

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.

Additional Resources

Subscribe to learn Git

Git Tips straight to your inbox

Make Git Easier, Safer &
More Powerful

with GitKraken