Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git and Amazon s3 [closed]

Tags:

git

amazon-s3

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

like image 399
Pranz Avatar asked Jul 08 '10 21:07

Pranz


1 Answers

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)

like image 124
Alec the Geek Avatar answered Nov 15 '22 16:11

Alec the Geek