Move a commit to a different branch

$ git checkout feature/name
$ git cherry-pick [hash]
$ git checkout master
$ git reset --hard HEAD~1
  • git