Skip to content

Instantly share code, notes, and snippets.

@osyoyu
Created January 28, 2017 13:42
Show Gist options
  • Save osyoyu/180ed54c2c966ef795959a72d1a993d0 to your computer and use it in GitHub Desktop.
Save osyoyu/180ed54c2c966ef795959a72d1a993d0 to your computer and use it in GitHub Desktop.
git-watch for macOS
#!/bin/bash
fswatch -0 -e '\.git' . | while read -d "" event
do
git add ${event} && git commit -m `date +%s`
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment