Created
July 9, 2019 11:43
-
-
Save muokicaleb/41b3776c201db8e2b4061619f31f9c6e to your computer and use it in GitHub Desktop.
A script to auto commit code.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# a script that automatically commits when the file is saved | |
# you need to install inotify-tools | |
inotifywait -q -m -e CLOSE_WRITE --format="git commit -m 'autocommit ' %w" *.* | sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment