This document is driven from https://docs.gitlab.com/ee/topics/git/lfs/.
Managing large binaries in Git repositories is challenging, that is why Git LFS was developed for, to manage large files.
Git LFS client talks with the Gogs server over HTTP/HTTPS. It uses HTTP Basic Authentication to authorize client requests. Once the request is authorized, Git LFS client receives instructions from where to fetch or where to push the large file.
Please refer to Configuring Git Large File Storage (LFS).
Git LFS endpoints in a Gogs server can be automatically discovered by the Git LFS client, therefore you do not need to configure anything upfront for using it. Please walk through official Git LFS Tutorial to get started.