TheDocumentation Index
Fetch the complete documentation index at: https://code.storage/docs/llms.txt
Use this file to discover all available pages before exploring further.
+import endpoint is a git push namespace designed for bulk repository ingestion. When you push to a repository using the +import suffix, Code Storage fans out the pack to all storage nodes as usual, then immediately enqueues a cold-storage job. The repository is archived to object storage before the next access rather than sitting on disk indefinitely.
Use +import when:
- You are migrating a large number of repositories at once
- You want to ingest repos you won’t access immediately
- Disk usage during import is a concern
Cold archival is only enqueued on write (push). Reads—clone, fetch, pull—go through the normal thaw flow if the repository has been archived.
Setup
Add a dedicated remote by inserting+import before .git in the repository URL:
Quick start
Create the repository first, then push to the import remote:SDK workflow
Generate a JWT-authenticated import URL with the SDK, then use it with standard git commands:Bulk import
When importing many repositories, iterate over your source list and push each one through the import remote:How it works
When you push to a+import remote:
- The pack is received and unpacked at the gateway
- Objects fan out to all three storage nodes (same as a normal push)
- A cold-storage job is enqueued immediately—no waiting for the normal inactivity timeout
- The repository is pushed to object storage (S3) and removed from hot disk
- Code Storage detects the repository is cold and thaws it automatically
- Thaw time depends on repository size; the client receives a message to retry while thaw completes
URL format
The import remote URL follows the same pattern as other namespaced remotes:Caveats
- Still fans out first: The push replicates to all storage nodes before cold archival. There is no way to skip replication.
- Reads trigger thaw: Subsequent clones or fetches will thaw the repository. This adds latency on first access.
- Write only: The
+importnamespace only affects push behavior. Clone and fetch routes ignore it and use the standard remote path.