Articles

Change The Admin Password In Gitea

First of all, you need to find out where your gitea binary is installed. If you installed from the binary simply find the folder where you installed it and run:

./gitea admin change-password --username USERNAME --password PASSWORD

You should replace USERNAME and PASSWORD with your updated username and password.

This command assumes the config file (app.ini) is stored relative to the gitea binary. If you want to specify a different config try the following:

./gitea admin change-password --username USERNAME --password PASSWORD -c "/path/to/gitea/app.ini"

Of course, if you host with us we can sort you out with this and any other request. Simply get in touch.

Hosted Gitea is a fully managed Gitea hosting service. If you're looking for a private alternative to GitHub or Gitlab check out our service.

Get your Gitea server