Skip to content

Instantly share code, notes, and snippets.

@DalyaG
Created April 20, 2020 07:44
Show Gist options
  • Save DalyaG/f67bb68d5615201237dd0671bbc8aab5 to your computer and use it in GitHub Desktop.
Save DalyaG/f67bb68d5615201237dd0671bbc8aab5 to your computer and use it in GitHub Desktop.
get git data from terminal
path/to/project$ git rev-parse --abbrev-ref HEAD
my_branch
path/to/project$ git describe --always
ed7a91b
path/to/project$ git diff
<...>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment