DEV Community

Discussion on: Essential git commands

Collapse
 
gustavopch profile image
Gustavo

Not always better. They work differently:

  • cherry-pick will append the specified commit to the current one.
  • checkout will bring the specified commit's changes to the working directory (it's up to you to commit those changes).

It really depends on what you want to do. I use both frequently.