About Gogs
Gogs is a lightweight, self-hosted Git service built with Go, offering easy installation, cross-platform support, and minimal resource requirements. Ideal for users seeking a painless way to host their own Git repositories.
FAQ
You can change the listening port on the first run by passing the -port flag: gogs web -port 3001. This flag also updates the port number shown on the install page.
Set the OFFLINE_MODE option to true in the [server] section of your custom/conf/app.ini: [server] OFFLINE_MODE = true. This disables external network calls such as CDN resource loading and Gravatar avatar fetching.
Create a file named robots.txt in the custom directory at the root of your Gogs installation: custom/robots.txt. Gogs will serve this file automatically at /robots.txt.
The first user to register (with ID = 1) is automatically granted administrator privileges. Once logged in, the administrator can promote other users by navigating to Admin Panel > Users and editing user accounts.
If you have shell access to the server, follow these steps: Stop Gogs, then create a temporary admin user from the command line: su git cd /home/git/gogs gogs admin create-user --name tmpuser --password tmppassword --admin --email tmp@example.com. Start Gogs again, then log in as tmpuser in your browser. Navigate to Admin Panel > Users, click Edit next to the original administrator account, and set a new password. Clean up by logging out, logging back in as the original administrator with the new password, then deleting the tmpuser account from Admin Panel > Users.
Git hooks permission is a high-level privilege that can allow arbitrary code execution on the server. Only grant it to users you fully trust. To enable or disable this permission, go to the Admin Panel > Users, select the user, and toggle the Git hooks permission in their account settings (/admin/users/:userid).
Mirrored repositories cannot have their own wiki because the mirror is a read-only copy of the upstream repository. If you see the “Welcome to Wiki!” page but no green “Create the first page” button, your repository was likely created as a mirror. You have two options: Edit the wiki on the upstream repository that is being mirrored, or convert the mirror to a regular repository under Settings > Danger Zone if you no longer need it to be a mirror.
Alternatives to consider
See all alternativesBadges
Promote Gogs giving it more exposure, by adding these badges to your website, documentation, or product listing. Each badge links back to Gogs page on Webfolio.
<a href="https://www.webfolio.to/tools/gogs?utm_source=badge&utm_campaign=badge" target="_blank" rel="noopener noreferrer"><img src="https://www.webfolio.to/badges/featured_color.svg" alt="Featured on Webfolio" style="max-width: 150px" /></a>
Categories
Claim this tool
Are you the founder? Claim your profile to update details and track views.