Today the first SparkleShare beta for mac came out. SparkleShare is somehow very similar to dropbox but instead of being bound to one company, SparkleShare is based on git and therefor allows hosting your repositories on your own servers. I’ve been waiting for this release for because one of my colleagues is already using it on linux for quite a while.
Unfortunately the documentation is a little thin about self hosted repositories so here are the necessary steps to get it working:
- Download and install SparkleShare for Mac
- Create a bare git repository on your server and make sure you can connect to it using public key authentication
- Start up SparkleShare and add a new folder. In the address field add the address of your server to which you can log in to via public key authentication. In the folder field add the absolute path to the repository on the server.
Initially I tried to set it up via the built in setup assistant but for some reason an error occurred. I was able to log in and clone via the command line though. It turned out that I misinterpreted the address field because I was thinking that the usual ssh://user@server url would go in there.
You can also add a remote folder via the command line although that doesn’t seem to be recommended as mentioned in the comments.
- Open up a Terminal and cd to ~/SparkleShare
- Then clone your remote repository into that folder: git clone user@server/path/to/repo.git
- The folder should now appear in the SparkleShare menu and work as expected
Also make sure to have a working /usr/bin/git executable or symlink an existing git binary to that location otherwise SparkleShare will crash right away.