gm repo get commit
from nu-git-manager-sugar git
(see source)
get the commit hash of any revision
# get the commit hash of the currently checked out revision
gm repo get commit
# get the commit hash of the main branch
gm repo get commit main
revision?
<string
> =HEAD
: the revision to get the hash of
input | output |
---|---|
nothing |
string |