Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 585 Bytes

gm-repo-get-commit.md

File metadata and controls

22 lines (18 loc) · 585 Bytes

gm repo get commit from nu-git-manager-sugar git (see source)

get the commit hash of any revision

Examples

# 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

Parameters

  • revision? <string> = HEAD: the revision to get the hash of

Signatures

input output
nothing string