So I thought, we will give a shot to Amazon S3 and to my suprise we got it working in 30mins. OfCourse, it may be as powerful as GitHub in terms of features, but can be the cheapest way to maintain repositories
I did search for some these blogs which guided me,
http://www.tobinharris.com/2008/7/22/putting-git-in-the-cloud-with-amazon-s3
Also, tobharris has a excellent reference to Toolman Tim
Following are the steps are in detail on how to setup
- Signup for a Amazon S3 account , click here
- Install Jungle Disk, which will map your s3 storage to local drive say y:
- Install CYGWIN git and open it
- Go to y: from your MSysgit or Cygwin of your GIT, and perform following commands
- mkdir var/git/sample.git
- git --bare init
- go to your project directory, which needs to be pushed on sample.git
- git remote add s3origin /cygdrive/y/var/git/sampleajax.git
- git push s3origin master //This will push your project to master branch of s3origin
- Open Cygwin
- Go to say c:\temp
- mkdir sample
- cd sample
- git config --global user.email youremail
- git clone /cygdrive/y/var/git/sampleajax.git
GIT and Amazon S3 combination can be used to make cheap backups as well as for maintaining projects.
No comments:
Post a Comment