How to handle a large git repository?

后端 未结 2 1061
长情又很酷
长情又很酷 2020-11-29 05:15

I am currently using git for a large repository (around 12 GB, each branch having a size of 3 GB). This repository contains lots of binary files (audio and images).

2条回答
  •  Happy的楠姐
    2020-11-29 05:58

    Follow these steps.

    1.install git lfs in your local machine by typing in the following code.

    git lfs install
    

    2.Now add the file type you want lfs to manage for you.

    git lfs track "*.mp4"
    
    1. Now you are all set. Go ahead and add , commit and push your files and there'll be no warning.

提交回复
热议问题