git drs add-urlgit drs add-url prepares a Git pointer plus local DRS metadata for an object that already exists in provider storage.
Important behavior:
add-url does not upload object bytes.git drs push.add-url supports S3 and S3-compatible storage.s3://...) is stored as the object access URL.Primary support today is S3-style URLs:
s3://bucket/keyhttps://bucket.s3.amazonaws.com/keyThe remote-backed inspect path is intentionally narrow in v1: S3 and S3-compatible buckets only.
If your remote org/project already has a bucket mapping, pass an object key relative to that configured bucket scope and set --scheme.
git drs track "data/*.bin"
git add .gitattributes
git drs add-url path/to/object.bin data/from-bucket.bin \
--scheme s3 \
--sha256 <64-char-sha256>
Notes:
path/to/object.bin is resolved relative to the configured bucket prefix for the current remote org/project.--scheme is required in object-key mode so Syfon knows which provider path to inspect. Today this must be s3.You can still pass a full provider URL directly.
git drs add-url s3://my-bucket/path/to/object.bin data/from-bucket.bin \
--sha256 <64-char-sha256>
If you know the authoritative SHA256, pass --sha256.
git drs track "data/*.bin"
git add .gitattributes
git drs add-url path/to/object.bin data/from-bucket.bin \
--scheme s3 \
--sha256 <64-char-sha256>
git add data/from-bucket.bin
git commit -m "add known-sha object"
git drs push
If SHA256 is unknown, omit --sha256.
Behavior:
add-url performs object metadata lookup (HEAD/attributes).git drs push performs metadata registration.git drs track "data/*.bin"
git add .gitattributes
git drs add-url path/to/object.bin data/from-bucket.bin --scheme s3
git add data/from-bucket.bin
git commit -m "add unknown-sha object"
git drs push
add-url no longer accepts per-command AWS flags.
For the normal remote-backed flow, git drs add-url does not use local AWS_* credentials. Syfon loads the bucket credential and endpoint configuration that were already stored through bucket management.
If your remote does not implement the internal inspect route yet, add-url fails with an upgrade message instead of falling back to local env-based inspection.
.gitattributes).git drs bucket add, then git drs bucket add-organization or git drs bucket add-project --path s3://bucket/prefix.blob attributes failed ... MovedPermanently (301)Usually a stored bucket credential is pointed at the wrong region or endpoint for S3-compatible storage.
no local payload available; skipping upload and keeping metadata-only registrationExpected for add-url pointer/metadata-only flows where local payload bytes are intentionally absent.
file is not trackedTrack the path pattern and re-add:
git drs track "data/*.bin"
git add .gitattributes