git and Amazon s3 [closed]
Can I setup Git and Amazon S3? Any ideas on ways of doing it?
My preferred approach to using git with some remote storage (e.g. Jungle disk and the approach I use with Dropbox) is as follows:
- Create a local working repo
- Create a bare repo on the remotelysupplied storage (e.g. in a sync folder)
- Set up the remote using file:// protocol
- 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)
If you just want to replicate the code and repository, the easiest thing would be to use Jungle Disk and create a sync folder.
精彩评论