These instructions are based on this article: https://www.alexruf.net/git/2016/05/23/setup-gogs-git-service.html.
Other instructions. https://hobbylad.wordpress.com/2018/02/16/gitea-git-server-setup-on-raspberry-pi/
Setup Raspberry Pi with minimal Raspbian image. You need to connect to the HDMI port and set the following:
Use Noobs to install Raspian.