Uses the git rev-parse
command with a ref to HEAD to return the hash of the current commit.
git rev-parse HEAD
or
git rev-parse @
Uses the git rev-parse
command with a ref to HEAD to return the hash of the current commit.
git rev-parse HEAD
or
git rev-parse @
320
down vote
accepted
Git 1.7.2 introduced the ability to cherrypick a range of commits. From the release notes:
git cherry-pick" learned to pick a range of commits (e.g. "cherry-pick A..B" and "cherry-pick --stdin"), so did "git revert"; these do not support the nicer sequencing control "rebase [-i]" has, though.
Including important comments (credits to respective authors)
Note 1: In the "cherry-pick A..B" form, A should be older than B. If they're the wrong order the command will silently fail. – damian
Note 2: Also, this will not cherry-pick A, but rather everything after A up to and including B. – J. B. Rainsberger
Note 3: To include A just type git cherry-pick A^..B – sschaef
http://stackoverflow.com/questions/1670970/how-to-cherry-pick-multiple-commits