Skip to content

Instantly share code, notes, and snippets.

@kristianfreeman
Created October 31, 2014 20:01
Show Gist options
  • Save kristianfreeman/ad3a8eb4a65d5b54186e to your computer and use it in GitHub Desktop.
Save kristianfreeman/ad3a8eb4a65d5b54186e to your computer and use it in GitHub Desktop.
#!/bin/bash
cd ~/Mail
git commit -m "Before sync. $(date +%s)" --allow-empty
git fsck --strict --full
mbsync boxes
rm contents && du -h -d1 >> contents
git add . && git add -u
git commit -m "After sync. $(date +%s)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment