In order to install the tool correctly, you need to download it here and make it executable. After that you can move the binary into the application folder and use it via the terminal.
# Download the binary
curl -L -o gogs <URL>
# Make the binary executable
chmod +x gogs
# Move to application directory
sudo mv gogs /usr/local/bin