tags:

views:

53

answers:

2

Can I setup Git and Amazon S3? Any ideas on ways of doing it?

A: 

If you just want to replicate the code and repository, the easiest thing would be to use Jungle Disk and create a sync folder.

Tim Coker
A: 

My preferred approach to using git with some remote storage (e.g. Jungle disk and the approach I use with Dropbox) is as follows:

  1. Create a local working repo
  2. Create a bare repo on the remotelysupplied storage (e.g. in a sync folder)
  3. Set up the remote using file:// protocol
  4. Push to the remote as needed

This means that you are not dependent on the remote connection for VC activity and traffic over the a possibly slow network is as efficient as possible.

If wanted you can add a post commit hook to push to the remote automatically.

(Sorry but I can't remember who to credit with this, it's not my idea)

Alec the Geek