Skip to content

Instantly share code, notes, and snippets.

@nerixim
Last active December 23, 2020 15:15
Show Gist options
  • Select an option

  • Save nerixim/30122dceba4f1e9ea5913592a00a1b2d to your computer and use it in GitHub Desktop.

Select an option

Save nerixim/30122dceba4f1e9ea5913592a00a1b2d to your computer and use it in GitHub Desktop.
Check if directory has changes
git diff --quiet HEAD $REF -- $DIR || echo changed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment