This page is intentionally minimal. It gets a new user from zero to a working git-drs repository with as little explanation as possible.
If you want the workflow explained after setup, continue to Getting Started.
git-drsThis quick start uses release v0.6.0.
=== “macOS (Apple Silicon)”
```bash
curl -L -o git-drs-darwin-arm64-v0.6.0.tar.gz \
https://github.com/calypr/git-drs/releases/download/v0.6.0/git-drs-darwin-arm64-v0.6.0.tar.gz
tar -xzf git-drs-darwin-arm64-v0.6.0.tar.gz
install -m 0755 git-drs "$HOME/.local/bin/git-drs"
```
=== “macOS (Intel)”
```bash
curl -L -o git-drs-darwin-amd64-v0.6.0.tar.gz \
https://github.com/calypr/git-drs/releases/download/v0.6.0/git-drs-darwin-amd64-v0.6.0.tar.gz
tar -xzf git-drs-darwin-amd64-v0.6.0.tar.gz
install -m 0755 git-drs "$HOME/.local/bin/git-drs"
```
=== “Linux (x86_64)”
```bash
curl -L -o git-drs-linux-amd64-v0.6.0.tar.gz \
https://github.com/calypr/git-drs/releases/download/v0.6.0/git-drs-linux-amd64-v0.6.0.tar.gz
tar -xzf git-drs-linux-amd64-v0.6.0.tar.gz
install -m 0755 git-drs "$HOME/.local/bin/git-drs"
```
=== “Linux (arm64)”
```bash
curl -L -o git-drs-linux-arm64-v0.6.0.tar.gz \
https://github.com/calypr/git-drs/releases/download/v0.6.0/git-drs-linux-arm64-v0.6.0.tar.gz
tar -xzf git-drs-linux-arm64-v0.6.0.tar.gz
install -m 0755 git-drs "$HOME/.local/bin/git-drs"
```
=== “Windows”
There is no packaged Windows release in this flow. Build `git-drs` from source instead.
Verify:
git-drs version
See the non-secret server defaults included with your installed release:
git drs preset list
git drs preset show calypr
The built-in aliases are calypr, terra, synapse, and cgc. Presets supply
the endpoint, provider adapter, and usual authentication method; they never
contain credentials.
For the Calypr/Gen3 workflow below, download your Gen3 API credentials JSON from your commons profile page and save it somewhere stable, for example:
~/.gen3/credentials.json
Typical flow:
Create API Key.On the command line, refer to the file as file:~/.gen3/credentials.json.
Other supported credential sources are env:VARIABLE, helper:NAME,
profile:NAME, and stdin. Do not put a token or password directly in
--credential.
git clone <repo-url>
cd <repo-name>
git drs remote add production calypr --scope <organization/project> \
--credential file:~/.gen3/credentials.json
git drs pull
Use this path when the repository already contains tracked pointers and you want local file contents.
mkdir my-data-repo
cd my-data-repo
git init
git drs remote add production calypr --scope <organization/project> \
--credential file:~/.gen3/credentials.json
git drs track "*.bam"
git add .gitattributes
git commit -m "Configure tracked files"
production is the local remote name and calypr is the preset. If the preset
name is also a suitable local name, the shorter form is
git drs remote add calypr ....
Update Git history:
git pull
Hydrate tracked pointer files already present in the checkout:
git drs pull
Register/upload tracked objects and complete the managed push flow:
git drs push
Use plain git push only when you intentionally want Git-only ref updates without the managed git-drs upload/registration path.