Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6779939
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:26:50+00:00 2026-05-26T16:26:50+00:00

Does anyone know how to do this? So far I haven’t been able to

  • 0

Does anyone know how to do this? So far I haven’t been able to find anything useful via Google.

I’d really like to setup a local repo and use git push to publish it to S3, the idea being to have local version control over assets but remote storage on S3.

Can this be done, and if so, how?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T16:26:51+00:00Added an answer on May 26, 2026 at 4:26 pm

    1 Use JGit via http://blog.spearce.org/2008/07/using-jgit-to-publish-on-amazon-s3.html

    Download jgit.sh, rename it to jgit and put it in your path (for example $HOME/bin).

    Setup the .jgit config file and add the following (substituting your AWS keys):

    $vim ~/.jgit

    accesskey: aws access key
    secretkey: aws secret access key
    

    Note, by not specifying acl: public in the .jgit file, the git files on S3 will be private (which is what we wanted). Next create an S3 bucket to store your repository in, let’s call it git-repos, and then create a git repository to upload:

    s3cmd mb s3://git-repos
    mkdir chef-recipes
    cd chef-recipes
    git init
    touch README
    git add README
    git commit README
    git remote add origin amazon-s3://.jgit@git-repos/chef-recipes.git
    

    In the above I’m using the s3cmd command line tool to create the bucket but you can do it via the Amazon web interface as well. Now let’s push it up to S3 (notice how we use jgit whenever we interact with S3, and standard git otherwise):

    jgit push origin master
    

    Now go somewhere else (e.g. cd /tmp) and try cloning it:

    jgit clone amazon-s3://.jgit@git-repos/chef-recipes.git
    

    When it comes time to update it (because jgit doesn’t support merge or pull) you do it in 2 steps:

    cd chef-recipes
    jgit fetch
    git merge origin/master
    

    2 Use FUSE-based file system backed by Amazon S3

    1. Get an Amazon S3 account!

    2. Download, compile and install. (see InstallationNotes)

    3. Specify your Security Credentials (Access Key ID & Secret Access
      Key) by one of the following methods:

      • using the passwd_file command line option

      • setting the AWSACCESSKEYID and AWSSECRETACCESSKEY environment variables

      • using a .passwd-s3fs file in your home directory

      • using the system-wide /etc/passwd-s3fs file

      • do this

    .

    /usr/bin/s3fs mybucket /mnt
    

    That’s it! the contents of your amazon bucket “mybucket” should now be accessible read/write in /mnt

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone know if this has been released yet? I went to asp.net and
Does anyone know if this subversion bug has been dealt with? https://svn.apache.org/repos/asf/subversion/tags/1.6.9/www/faq.html#windows-access-denied I'm getting
I cannot find this in the documentation anywhere. Does anyone know if this is
I haven't been able to find this anywhere (or I just don't understand it).
Does anyone know what this means. Getting this in C# winforms applications: Not a
Does anyone know what this value is for? If it is set to 1,
Does anyone know what this error message means? FATAL: Code generation error detected during
Does anyone know why this code doesn't work. This means, the alert is NOT
Does anyone know what is wrong with this query? SELECT DISTINCT c.CN as ClaimNumber,
Does anyone know how to turn this string: Smith, John R Into this string:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.