开发者

git and Amazon s3 [closed]

开发者 https://www.devze.com 2023-01-06 07:55 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. 开发者_如何转开发 Closed 12 years ago.

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:

  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)


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号