Skip to content

Instantly share code, notes, and snippets.

@sincejune
Created September 19, 2019 03:32
Show Gist options
  • Save sincejune/098286f70ab43dd45a33a8d0c3dc51aa to your computer and use it in GitHub Desktop.
Save sincejune/098286f70ab43dd45a33a8d0c3dc51aa to your computer and use it in GitHub Desktop.
check if file change in git
git diff --name-only HEAD~1 HEAD | grep -q kubernetes.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment