Skip to content

Instantly share code, notes, and snippets.

@mjhoy
Created November 4, 2015 19:01
Show Gist options
  • Save mjhoy/5128dbf8c8731db02cd9 to your computer and use it in GitHub Desktop.
Save mjhoy/5128dbf8c8731db02cd9 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Commit changes to ~/Dropbox/org
set -e
cd /Users/mjhoy/Dropbox/org
if git status | grep 'working directory clean'
then exit
fi
git add --all .
git commit -m 'latest (autocommit)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment