DEV Community

Discussion on: My Personal Git Tricks Cheatsheet

Collapse
 
vishnuharidas profile image
Vishnu Haridas

I am afraid to do git cherry-pick without the -n parameter because cherry-picking automatically commits after picking the changes. Most of the time I want to review the changes and commit them manually. So I do:

git cherry-pick -n HASH
Collapse
 
antjanus profile image
Antonin J. (they/them)

ooh, i wasn't aware of the dry run. I tend to not care because I can always do an interactive rebase and delete those commits.