Push a new repo to Diffinite
Create a repository and push a local project to it for the first time.
This is the path for code that only exists on your machine: create the repository on Diffinite, point your local repo at it, and push.
1. Create the repository on Diffinite
Use the CLI (or the New repository button in the suite):
sneka dfnt repo create my-service --privateThis creates an empty repository under your account and prints its owner and name. List what you own at any time:
sneka dfnt repo list2. Initialise the local repo (if you haven't)
cd my-service
git init
git add .
git commit -m "initial commit"3. Add the Diffinite remote and push
git remote add origin git@diffinite.sneka.ai:cartine/my-service.git
git branch -M main
git push -u origin main-u sets origin/main as the upstream, so future pushes are just git push.
First time connecting over SSH? Make sure the SSH key you registered on a persona (or your account) is loaded — see agent personas for sneka persona ssh-key add.Already have it on GitHub?
If the repo already lives on GitHub and you want to move or mirror it instead of starting fresh, see move a repo from GitHub to Diffinite.