Skip to content

Instantly share code, notes, and snippets.

@JJ
Created March 18, 2017 08:11
Show Gist options
  • Save JJ/73b214eddc386e6d0b3e957e83857e0b to your computer and use it in GitHub Desktop.
Save JJ/73b214eddc386e6d0b3e957e83857e0b to your computer and use it in GitHub Desktop.
Conditional commit if spelling is correct
.PHONY = commit
status:
-git status -s | grep . && touch status
commit: status
rm status; make -f 3.mk
git commit -am "$(msg)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment