You need three things: An S3 bucket, an LFS server implementation, and local Git config.
Standard Git LFS command:
git config lfs.url https://your-domain.com/lfs
if aws s3 ls s3://$BUCKET/$VERSION/md5sums.txt; then aws s3 cp s3://$BUCKET/$VERSION/md5sums.txt /tmp/ pushd $LFS_SOURCES md5sum -c /tmp/md5sums.txt --quiet popd fi
# Point LFS to your new proxy server git config -f .lfsconfig remote.origin.lfsurl https://your-proxy-url.com # Track your large files (if not already) git lfs track "*.psd" git lfs track "*.zip" # Commit the configuration git add .lfsconfig .gitattributes git commit -m "Update LFS to use S3 storage" Use code with caution. Copied to clipboard Pro-Tip: Avoid the "Password Prompt" Loop
You need three things: An S3 bucket, an LFS server implementation, and local Git config.
Standard Git LFS command:
git config lfs.url https://your-domain.com/lfs
if aws s3 ls s3://$BUCKET/$VERSION/md5sums.txt; then aws s3 cp s3://$BUCKET/$VERSION/md5sums.txt /tmp/ pushd $LFS_SOURCES md5sum -c /tmp/md5sums.txt --quiet popd fi
# Point LFS to your new proxy server git config -f .lfsconfig remote.origin.lfsurl https://your-proxy-url.com # Track your large files (if not already) git lfs track "*.psd" git lfs track "*.zip" # Commit the configuration git add .lfsconfig .gitattributes git commit -m "Update LFS to use S3 storage" Use code with caution. Copied to clipboard Pro-Tip: Avoid the "Password Prompt" Loop