Skip to content

Instantly share code, notes, and snippets.

@liunian
Last active August 31, 2019 03:10
Show Gist options
  • Save liunian/87a63cf85a4ee9b756e10a5b628c1fd9 to your computer and use it in GitHub Desktop.
Save liunian/87a63cf85a4ee9b756e10a5b628c1fd9 to your computer and use it in GitHub Desktop.
is git dirty
git rev-parse --abbrev-ref HEAD
git diff --quiet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment