5-Minute Quick Start
This guide will get you from zero to a working Gitea instance with your first repository in just 5 minutes.This quick start uses Docker for the fastest setup. For other installation methods, see the Installation Guide.
Prerequisites
Before you begin, ensure you have:- Docker installed - Get Docker
- Terminal/Command line access
- 5 minutes of your time
Step 1: Start Gitea
Run this single command to start Gitea:What this does:
- Downloads the latest Gitea Docker image
- Starts Gitea on port 3000 (web interface)
- Maps port 222 for SSH access
- Creates a Docker volume for persistent data
Wait for Gitea to start
Give it a few seconds to initialize. Check if it’s running:You should see the
gitea container in the list.Step 2: Complete Initial Setup
Gitea will guide you through the initial configuration:Configure database
The default SQLite configuration is perfect for getting started:
- Database Type: SQLite3 (pre-selected)
- Path: Default value is fine
SQLite requires no additional setup and is perfect for small to medium installations. You can migrate to PostgreSQL or MySQL later if needed.
Configure basic settings
Adjust these settings for your environment:
- For Local Development
- For Production/Remote Server
- Server Domain:
localhost - SSH Server Port:
222 - Gitea Base URL:
http://localhost:3000/
Keep the defaults - they work great for local testing!
Create administrator account
Scroll down to the “Administrator Account Settings” section:
- Administrator Username: Choose your admin username (e.g.,
admin) - Password: Choose a strong password
- Email: Your email address
Step 3: Create Your First Repository
Create a new repository
Click the ”+” icon in the top right corner and select “New Repository”.
You can also click the green “Create Repository” button on your dashboard.
Configure your repository
Fill in the repository details:
- Owner: Your username (pre-selected)
- Repository Name: e.g.,
my-first-repo - Description: (optional) “My first Gitea repository”
- Visibility: Choose Public or Private
- Initialize Repository: Check this box
- ✅ Add .gitignore: Select a template (optional)
- ✅ Add README: Recommended for getting started
- ✅ Add License: Choose a license (optional)
Step 4: Clone and Push Code
Now let’s interact with your repository from the command line:- Using HTTPS
- Using SSH
Step 5: Explore Gitea Features
Now that you have a working repository, explore what Gitea can do:Create an Issue
Try the issue tracker:
- Go to Issues tab
- Click New Issue
- Add a title and description
- Submit the issue
Make a Pull Request
Test the code review workflow:
- Create a new branch
- Make changes and push
- Create a pull request
- Review and merge
Add Collaborators
Invite team members:
- Go to repository Settings
- Click Collaborators
- Add users and set permissions
Setup Webhooks
Integrate with external services:
- Go to repository Settings
- Click Webhooks
- Add webhook URL
- Configure events
Common Tasks
Create an Organization
Organizations help manage multiple repositories and team members:Configure organization
- Set organization name and description
- Choose visibility settings
- Click Create Organization
Enable Gitea Actions (CI/CD)
Gitea Actions provides GitHub Actions-compatible CI/CD capabilities.
Configure Email Notifications
Enable email notifications for issues, pull requests, and more:Managing Your Gitea Instance
Start/Stop/Restart Gitea
Backup Your Data
Update Gitea
Keep your Gitea instance up to date:Your data is safe in the Docker volume and will persist across container updates.
Troubleshooting
Can't access Gitea at localhost:3000
Can't access Gitea at localhost:3000
Check if container is running:Check logs for errors:Verify port isn’t already in use:
Git push asks for password every time
Git push asks for password every time
Using HTTPS:
Set up credential helper:Or switch to SSH:
Add your SSH key to Gitea and use SSH clone URLs instead.
SSH connection refused
SSH connection refused
Check SSH port mapping:Test SSH connection:Make sure you’re using port 222 (not 22) as specified in the Docker command.
Lost administrator password
Lost administrator password
Reset via command line:
Next Steps
Configuration Guide
Learn about advanced configuration options and customization
Features Overview
Discover all features available in Gitea
API Documentation
Integrate Gitea with other tools using the REST API
Actions & CI/CD
Set up continuous integration and deployment pipelines
Additional Resources
Official Documentation
Comprehensive documentation for all Gitea features
Community Forum
Get help and discuss with the community
Discord Server
Chat with other Gitea users and developers
GitHub Repository
Source code, issues, and contributions
Congratulations! You’ve successfully set up Gitea and created your first repository. You’re now ready to use Gitea for your development projects!