Git Protocol
Clone & Fetch
Clone and fetch Coregit repositories with standard Git.
Clone a Repository
# Public repository
git clone https://api.coregit.dev/myorg/public-repo.git
# Private repository
git clone https://myorg:cgk_live_YOUR_KEY@api.coregit.dev/myorg/private-repo.gitFetch Updates
git fetch origin
git pull origin mainShallow Clone
Coregit supports shallow clones for faster checkout:
git clone --depth 1 https://myorg:KEY@api.coregit.dev/myorg/repo.gitCredential Storage
To avoid entering your API key every time, configure Git credentials:
# Store credentials in memory for 1 hour
git config --global credential.helper 'cache --timeout=3600'
# Or store permanently (less secure)
git config --global credential.helper store