Navigation
Quick Start
Creating your first repository, setting up SSH, running CI/CD - in 10 minutes after installation
After installation and completing the setup wizard, you land on the GitRiver home page. This section covers how to create your first repository, set up SSH, configure CI/CD, and invite colleagues.
Creating Your First Repository
Via the Web Interface
- Click the ”+” button in the top right corner -> Repository
- Fill in:
- Name - Latin letters, digits, hyphens (e.g.,
my-project) - Description - a brief project description (optional)
- Visibility - public (everyone can read) or private
- Name - Latin letters, digits, hyphens (e.g.,
- Optionally check:
- Initialize README - creates a
README.mdfile with the description - .gitignore - choose a template for your language
- License - MIT, Apache 2.0, and others
- Initialize README - creates a
- Click “Create”
Cloning to Your Machine
After creation, copy the URL from the interface:
# HTTPS (with login/password or token)
git clone https://git.example.com/username/my-project.git
# SSH (after setting up a key - see below)
git clone ssh://git@git.example.com/username/my-project.git
From an Existing Project
If you already have a local git repository:
cd my-existing-project
git remote add origin https://git.example.com/username/my-project.git
git push -u origin main
Setting Up SSH Keys
SSH lets you work with git without entering a password on every push/pull.
1. Create a key (if you don’t have one)
ssh-keygen -t ed25519 -C "your@email.com"
2. Copy the public part
cat ~/.ssh/id_ed25519.pub
3. Add it to GitRiver
- Click your avatar in the top right corner -> “Settings”
- In the left menu, select “SSH Keys”
- Click “Add SSH Key”
- Paste the public key contents, enter a name
- Click “Save”
4. Verify
git clone ssh://git@git.example.com/username/my-project.git
Setting Up GPG Keys
GPG keys allow you to sign commits to verify authorship.
- Click your avatar -> “Settings” -> “GPG Keys”
- Click “Add GPG Key”
- Paste your public GPG key (
gpg --armor --export your@email.com) - Configure git to sign commits:
git config --global user.signingkey YOUR_KEY_ID
git config --global commit.gpgsign true
Access Tokens
Tokens are needed for automation: scripts, external CI/CD systems, docker login.
Creating a Personal Token
- Click your avatar -> “Settings” -> “Tokens”
- Click “Create Token”
- Specify:
- Name - what this token is for (e.g., “CI server”)
- Scopes - what is allowed:
- Read repositories
- Write to repositories
- Read registry (docker pull)
- Write to registry (docker push)
- Expiration - when the token expires
- Click “Create” and save the token - it is shown only once
Usage
# As a password for git clone
git clone https://username:gtr_pat_xxxxx@git.example.com/owner/repo.git
# As an Authorization header
curl -H "Authorization: Bearer gtr_pat_xxxxx" https://git.example.com/api/v1/user
# For docker login
docker login git.example.com -u username -p gtr_pat_xxxxx
Your First CI/CD Pipeline
GitRiver has a built-in CI/CD system with YAML configuration.
1. Create a workflow file
In the root of your repository, create the file .gitriver/workflows/ci.yml:
name: CI
on:
push:
branches: [main]
pull_request:
jobs:
test:
image: node:22
steps:
- run: npm ci
- run: npm test
This means: on every push to main or when a pull request is created - run the test job in a node:22 container.
2. Push to the repository
git add .gitriver/workflows/ci.yml
git commit -m "Add CI configuration"
git push
3. View the result
- Open the repository in GitRiver
- Go to the “CI/CD” tab (rocket icon in the repository menu)
- You will see the running pipeline with the
testjob - Click on the job - logs will open in real time
For CI to work, Docker must be available on the GitRiver host (or the Docker socket must be mounted into the container). See the CI/CD Pipelines section for details.
Inviting Users
Open Registration
By default, registration is open. Users can register themselves on the login page. To disable: Administration -> System -> uncheck “Allow registration”.
Creating a User as Administrator
- Open Administration (in the top menu)
- Go to the “Users” section
- Click “Add User”
- Fill in the name, email, password
Groups (Organizations)
Groups unite users and repositories:
- Click ”+” -> “Group”
- Enter a group name (e.g.,
backend-team) - Add members with roles: Owner, Maintainer, Developer, Reporter, Guest
See the Users and Groups section for details.