Skip to content

Instantly share code, notes, and snippets.

@muokicaleb
Created July 9, 2019 11:43
Show Gist options
  • Save muokicaleb/41b3776c201db8e2b4061619f31f9c6e to your computer and use it in GitHub Desktop.
Save muokicaleb/41b3776c201db8e2b4061619f31f9c6e to your computer and use it in GitHub Desktop.
A script to auto commit code.
# 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