Created
February 3, 2015 01:48
-
-
Save trcook/e8a58760249890ae718e to your computer and use it in GitHub Desktop.
auto commit git. use fswatch to setup a file to auto-commit a git repo on file change
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
#!/bin/bash | |
# requires fswatch | |
fswatch -o . -e "\\.git.*"| xargs -n1 -I{} git commit -am "snapshot from autocommit_script.sh" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment