2017-11-26 21:44:32 +00:00
|
|
|
---
|
|
|
|
date: "2016-11-08T16:00:00+02:00"
|
|
|
|
title: "Documentation"
|
|
|
|
slug: "documentation"
|
2018-04-30 17:54:38 +00:00
|
|
|
url: "/en-us/"
|
2017-11-26 21:44:32 +00:00
|
|
|
weight: 10
|
2020-12-09 06:47:06 +00:00
|
|
|
toc: false
|
2017-11-26 21:44:32 +00:00
|
|
|
draft: false
|
|
|
|
---
|
|
|
|
|
|
|
|
# What is Gitea?
|
|
|
|
|
2019-03-09 21:15:45 +00:00
|
|
|
Gitea is a painless self-hosted Git service. It is similar to GitHub, Bitbucket, and GitLab.
|
2018-01-08 22:48:42 +00:00
|
|
|
Gitea is a fork of [Gogs](http://gogs.io). See the [Gitea Announcement](https://blog.gitea.io/2016/12/welcome-to-gitea/)
|
|
|
|
blog post to read about the justification for a fork.
|
2017-11-26 21:44:32 +00:00
|
|
|
|
|
|
|
## Purpose
|
|
|
|
|
2018-01-08 22:48:42 +00:00
|
|
|
The goal of this project is to provide the easiest, fastest, and most painless way of setting
|
|
|
|
up a self-hosted Git service. With Go, this can be done with an independent binary distribution
|
|
|
|
across all platforms and architectures that Go supports. This support includes Linux, macOS, and
|
|
|
|
Windows, on architectures like amd64, i386, ARM, PowerPC, and others.
|
2017-11-26 21:44:32 +00:00
|
|
|
|
|
|
|
## Features
|
|
|
|
|
|
|
|
- User Dashboard
|
|
|
|
- Context switcher (organization or current user)
|
|
|
|
- Activity timeline
|
|
|
|
- Commits
|
|
|
|
- Issues
|
|
|
|
- Pull requests
|
|
|
|
- Repository creation
|
|
|
|
- Searchable repository list
|
2018-01-08 22:48:42 +00:00
|
|
|
- List of organizations
|
2017-11-26 21:44:32 +00:00
|
|
|
- A list of mirror repositories
|
|
|
|
- Issues dashboard
|
|
|
|
- Context switcher (organization or current user)
|
|
|
|
- Filter by
|
|
|
|
- Open
|
|
|
|
- Closed
|
|
|
|
- Your repositories
|
|
|
|
- Assigned issues
|
|
|
|
- Your issues
|
|
|
|
- Repository
|
|
|
|
- Sort by
|
|
|
|
- Oldest
|
|
|
|
- Last updated
|
|
|
|
- Number of comments
|
|
|
|
- Pull request dashboard
|
|
|
|
- Same as issue dashboard
|
|
|
|
- Repository types
|
|
|
|
- Mirror
|
|
|
|
- Normal
|
|
|
|
- Migrated
|
|
|
|
- Notifications (email and web)
|
|
|
|
- Read
|
|
|
|
- Unread
|
|
|
|
- Pin
|
|
|
|
- Explore page
|
|
|
|
- Users
|
|
|
|
- Repos
|
|
|
|
- Organizations
|
|
|
|
- Search
|
|
|
|
- Custom templates
|
|
|
|
- Override public files (logo, css, etc)
|
|
|
|
- CSRF and XSS protection
|
|
|
|
- HTTPS support
|
|
|
|
- Set allowed upload sizes and types
|
|
|
|
- Logging
|
|
|
|
- Configuration
|
|
|
|
- Databases
|
2021-09-17 22:25:50 +00:00
|
|
|
- MySQL (>=5.7)
|
|
|
|
- PostgreSQL (>=10)
|
2017-11-26 21:44:32 +00:00
|
|
|
- SQLite3
|
2021-09-17 22:25:50 +00:00
|
|
|
- MSSQL (>=2008R2 SP3)
|
2021-12-07 05:44:08 +00:00
|
|
|
- TiDB (MySQL protocol)
|
2017-11-26 21:44:32 +00:00
|
|
|
- Configuration file
|
2021-12-24 03:56:57 +00:00
|
|
|
- [app.ini](https://github.com/go-gitea/gitea/blob/main/custom/conf/app.example.ini)
|
2017-11-26 21:44:32 +00:00
|
|
|
- Admin panel
|
|
|
|
- Statistics
|
|
|
|
- Actions
|
|
|
|
- Delete inactive accounts
|
|
|
|
- Delete cached repository archives
|
|
|
|
- Delete repositories records which are missing their files
|
|
|
|
- Run garbage collection on repositories
|
|
|
|
- Rewrite SSH keys
|
|
|
|
- Resync hooks
|
|
|
|
- Recreate repositories which are missing
|
|
|
|
- Server status
|
|
|
|
- Uptime
|
|
|
|
- Memory
|
|
|
|
- Current # of goroutines
|
|
|
|
- And more
|
|
|
|
- User management
|
|
|
|
- Search
|
|
|
|
- Sort
|
|
|
|
- Last login
|
|
|
|
- Authentication source
|
|
|
|
- Maximum repositories
|
|
|
|
- Disable account
|
|
|
|
- Admin permissions
|
2021-12-24 03:56:57 +00:00
|
|
|
- Permission to create Git Hooks
|
2017-11-26 21:44:32 +00:00
|
|
|
- Permission to create organizations
|
|
|
|
- Permission to import repositories
|
|
|
|
- Organization management
|
|
|
|
- People
|
|
|
|
- Teams
|
|
|
|
- Avatar
|
|
|
|
- Hooks
|
|
|
|
- Repository management
|
|
|
|
- See all repository information and manage repositories
|
|
|
|
- Authentication sources
|
|
|
|
- OAuth
|
|
|
|
- PAM
|
|
|
|
- LDAP
|
|
|
|
- SMTP
|
|
|
|
- Configuration viewer
|
|
|
|
- Everything in config file
|
|
|
|
- System notices
|
2021-07-08 11:38:13 +00:00
|
|
|
- When something unexpected happens
|
2017-11-26 21:44:32 +00:00
|
|
|
- Monitoring
|
|
|
|
- Current processes
|
|
|
|
- Cron jobs
|
|
|
|
- Update mirrors
|
|
|
|
- Repository health check
|
2020-02-19 21:48:33 +00:00
|
|
|
- Check repository statistics
|
2017-11-26 21:44:32 +00:00
|
|
|
- Clean up old archives
|
|
|
|
- Environment variables
|
|
|
|
- Command line options
|
2021-12-24 03:56:57 +00:00
|
|
|
- Multi-language support ([21 languages](https://github.com/go-gitea/gitea/tree/main/options/locale))
|
2020-07-27 06:24:09 +00:00
|
|
|
- [Mermaid](https://mermaidjs.github.io/) Diagram support
|
2017-11-26 21:44:32 +00:00
|
|
|
- Mail service
|
|
|
|
- Notifications
|
|
|
|
- Registration confirmation
|
|
|
|
- Password reset
|
|
|
|
- Reverse proxy support
|
|
|
|
- Includes subpaths
|
|
|
|
- Users
|
|
|
|
- Profile
|
|
|
|
- Name
|
|
|
|
- Username
|
|
|
|
- Email
|
|
|
|
- Website
|
|
|
|
- Join date
|
|
|
|
- Followers and following
|
|
|
|
- Organizations
|
|
|
|
- Repositories
|
|
|
|
- Activity
|
|
|
|
- Starred repositories
|
|
|
|
- Settings
|
|
|
|
- Same as profile and more below
|
|
|
|
- Keep email private
|
|
|
|
- Avatar
|
|
|
|
- Gravatar
|
|
|
|
- Libravatar
|
|
|
|
- Custom
|
|
|
|
- Password
|
2021-07-08 11:38:13 +00:00
|
|
|
- Multiple email addresses
|
2017-11-26 21:44:32 +00:00
|
|
|
- SSH Keys
|
|
|
|
- Connected applications
|
|
|
|
- Two factor authentication
|
|
|
|
- Linked OAuth2 sources
|
|
|
|
- Delete account
|
|
|
|
- Repositories
|
|
|
|
- Clone with SSH/HTTP/HTTPS
|
|
|
|
- Git LFS
|
|
|
|
- Watch, Star, Fork
|
|
|
|
- View watchers, stars, and forks
|
|
|
|
- Code
|
|
|
|
- Branch browser
|
|
|
|
- Web based file upload and creation
|
|
|
|
- Clone urls
|
|
|
|
- Download
|
|
|
|
- ZIP
|
|
|
|
- TAR.GZ
|
|
|
|
- Web based editor
|
|
|
|
- Markdown editor
|
|
|
|
- Plain text editor
|
|
|
|
- Syntax highlighting
|
|
|
|
- Diff preview
|
|
|
|
- Preview
|
|
|
|
- Choose where to commit to
|
|
|
|
- View file history
|
|
|
|
- Delete file
|
|
|
|
- View raw
|
|
|
|
- Issues
|
|
|
|
- Issue templates
|
|
|
|
- Milestones
|
|
|
|
- Labels
|
|
|
|
- Assign issues
|
2017-11-27 02:47:43 +00:00
|
|
|
- Track time
|
2017-12-03 23:14:26 +00:00
|
|
|
- Reactions
|
2017-11-26 21:44:32 +00:00
|
|
|
- Filter
|
|
|
|
- Open
|
|
|
|
- Closed
|
|
|
|
- Assigned person
|
|
|
|
- Created by you
|
|
|
|
- Mentioning you
|
|
|
|
- Sort
|
|
|
|
- Oldest
|
|
|
|
- Last updated
|
|
|
|
- Number of comments
|
|
|
|
- Search
|
|
|
|
- Comments
|
|
|
|
- Attachments
|
|
|
|
- Pull requests
|
|
|
|
- Same features as issues
|
|
|
|
- Commits
|
|
|
|
- Commit graph
|
|
|
|
- Commits by branch
|
|
|
|
- Search
|
|
|
|
- Search in all branches
|
|
|
|
- View diff
|
|
|
|
- View SHA
|
|
|
|
- View author
|
|
|
|
- Browse files in commit
|
|
|
|
- Releases
|
|
|
|
- Attachments
|
|
|
|
- Title
|
|
|
|
- Content
|
|
|
|
- Delete
|
|
|
|
- Mark as pre-release
|
|
|
|
- Choose branch
|
|
|
|
- Wiki
|
|
|
|
- Import
|
|
|
|
- Markdown editor
|
|
|
|
- Settings
|
|
|
|
- Options
|
|
|
|
- Name
|
|
|
|
- Description
|
|
|
|
- Private/Public
|
|
|
|
- Website
|
|
|
|
- Wiki
|
|
|
|
- Enabled/disabled
|
|
|
|
- Internal/external
|
|
|
|
- Issues
|
|
|
|
- Enabled/disabled
|
|
|
|
- Internal/external
|
|
|
|
- External supports url rewriting for better integration
|
|
|
|
- Enable/disable pull requests
|
|
|
|
- Transfer repository
|
|
|
|
- Delete wiki
|
|
|
|
- Delete repository
|
|
|
|
- Collaboration
|
|
|
|
- Read/write/admin
|
|
|
|
- Branches
|
|
|
|
- Default branch
|
|
|
|
- Branch protection
|
|
|
|
- Webhooks
|
2021-12-24 03:56:57 +00:00
|
|
|
- Git Hooks
|
2017-11-26 21:44:32 +00:00
|
|
|
- Deploy keys
|
|
|
|
|
|
|
|
## System Requirements
|
|
|
|
|
2018-01-08 22:48:42 +00:00
|
|
|
- A Raspberry Pi 3 is powerful enough to run Gitea for small workloads.
|
|
|
|
- 2 CPU cores and 1GB RAM is typically sufficient for small teams/projects.
|
|
|
|
- Gitea should be run with a dedicated non-root system account on UNIX-type systems.
|
2019-03-09 21:15:45 +00:00
|
|
|
- Note: Gitea manages the `~/.ssh/authorized_keys` file. Running Gitea as a regular user could break that user's ability to log in.
|
2019-09-14 06:24:26 +00:00
|
|
|
- [Git](https://git-scm.com/) version 1.7.2 or later is required. Version 1.9.0 or later is recommended. Also please note:
|
2021-12-24 03:56:57 +00:00
|
|
|
- [Git Large File Storage](https://git-lfs.github.com/) will be available if enabled when Git >= 2.1.2.
|
|
|
|
- Git commit-graph rendering will be enabled automatically when Git >= 2.18.
|
2017-11-26 21:44:32 +00:00
|
|
|
|
|
|
|
## Browser Support
|
|
|
|
|
2021-03-22 04:04:19 +00:00
|
|
|
- Last 2 versions of Chrome, Firefox, Safari and Edge
|
2020-05-20 03:28:59 +00:00
|
|
|
- Firefox ESR
|
2017-11-26 21:44:32 +00:00
|
|
|
|
|
|
|
## Components
|
|
|
|
|
2021-01-26 15:36:53 +00:00
|
|
|
* Web framework: [Chi](http://github.com/go-chi/chi)
|
2021-01-06 07:25:01 +00:00
|
|
|
* ORM: [XORM](https://xorm.io)
|
2017-11-26 21:44:32 +00:00
|
|
|
* UI components:
|
|
|
|
* [Semantic UI](http://semantic-ui.com/)
|
|
|
|
* [GitHub Octicons](https://octicons.github.com/)
|
|
|
|
* [Font Awesome](http://fontawesome.io/)
|
|
|
|
* [DropzoneJS](http://www.dropzonejs.com/)
|
|
|
|
* [Highlight](https://highlightjs.org/)
|
|
|
|
* [Clipboard](https://zenorocha.github.io/clipboard.js/)
|
|
|
|
* [CodeMirror](https://codemirror.net/)
|
|
|
|
* [jQuery MiniColors](https://github.com/claviska/jquery-minicolors)
|
|
|
|
* Database drivers:
|
|
|
|
* [github.com/go-sql-driver/mysql](https://github.com/go-sql-driver/mysql)
|
|
|
|
* [github.com/lib/pq](https://github.com/lib/pq)
|
|
|
|
* [github.com/mattn/go-sqlite3](https://github.com/mattn/go-sqlite3)
|
|
|
|
* [github.com/pingcap/tidb](https://github.com/pingcap/tidb)
|
|
|
|
* [github.com/denisenkom/go-mssqldb](https://github.com/denisenkom/go-mssqldb)
|
|
|
|
|
|
|
|
## Software and Service Support
|
|
|
|
|
|
|
|
- [Drone](https://github.com/drone/drone) (CI)
|