Search
Close this search box.

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

Table of Contents

Make Git Easier, Safer &
More Powerful

with GitKraken

Visual Studio Code is required to install GitLens.

Don’t have Visual Studio Code? Get it now.