Blog

Using git cherry-pick

1. Complete your fix, do your commit:

git commit -am "commit message"
git push

2. Bring up the log and scroll to the top, find your commit at the top and copy the hash, ex. "9ecda43". Hit "Q" to close the log.

git log
q

3. With git-cherry-pick, your'e basically merging specifically only your commit into the master/prod branch:

git checkout master
git pull
git cherry-pick 9ecda43
git push