When you add a large file to your Git repository, Git LFS replaces the file with a pointer in the repository and stores the actual file content on a remote server. The pointer is a small text file that references the large file stored separately. This allows the repository to remain compact and fast. To use Git LFS, you need to install it and configure your repository to track the specific types of files you want to manage with LFS.