Create a project:
curl -sk https://gist.github.com/nicerobot/4726285/raw/project | bash -s [project-name]
By using a LaunchAgent and a few simple scripts, this somewhat emulates something like Dropbox but on a Github repository.
Currently, the automated means of adding projects to ~/.dropgit
just uses a bare git repository so requires a push but there's absolutely no reason that directories can't be manually added to ~/.dropgit
and folders to org.nicerobot.dropgit.plist
.
e.g.
mkdir ~/.dropgit/mydata
ln -s ~/.dropgit/mydata ~/MyData
perl -pi -e 's/(^(\s+)<!--# (.*?)PROJECT.git(.*?) -->)/$2$3mydata$4\n$1/' ~/Library/LaunchAgents/org.nicerobot.dropgit.plist
curl -sk https://gist.github.com/nicerobot/4726285/raw/dropgit | bash -s reload