Skip to content

Instantly share code, notes, and snippets.

@ans1genie
Created August 10, 2021 08:25
Show Gist options
  • Save ans1genie/7013155714689b008ae852fbd0c56da5 to your computer and use it in GitHub Desktop.
Save ans1genie/7013155714689b008ae852fbd0c56da5 to your computer and use it in GitHub Desktop.
some git useful commands

TLDR:

It helps you to find out the commit ID of the current HEAD

git rev-parse HEAD

OR if you want the shorter commit

git rev-parse --short HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment