How to store a large file in a GitHub repository

github

Here’s a step-by-step guide to storing large files in a GitHub repository using Git LFS:

  1. Install Git LFS:

First, you need to install Git LFS on your system.

2.Initialize Git LFS in your repository:

running the following command:

3.Track large files:

Track this files using Git LFS by running the following command for each file types

4 .Add and commit the large files:

tracking the large files repository and commit the changes as you would normally:

5.Push changes to GitHub:

6.Verify on GitHub:

Once the push is complete, navigate to your repository on GitHub and verify that the large files are correctly stored using Git LFS.

Anup Rajak

web developer at cotocus private limited company