1

I have a large git repo on my drive and git operations on it take a very long time. I've noticed that it has a pack file of around 800mb. Would it improve the performance if I were to unpack that file?

7
  • 1
    Try not to commit binary files to git. If you have to commit large files, consider looking at git-lfs. Commented Jan 22, 2020 at 10:24
  • Is this on Windows or on Linux? Unfortunately git tends to be significantly slower on Windows machines than on Linux (I don't quite know why though). Commented Jan 22, 2020 at 10:27
  • @evolutionxbox This repository is actually a huge project. There's nothing other than code in it. Commented Jan 22, 2020 at 10:33
  • @JoachimSauer It's on linux, ext4. Commented Jan 22, 2020 at 10:34
  • 1
    How many files are there in a checkout and what operations take long (and what exactly is "long", use time to verify how long it actually takes). Commented Jan 22, 2020 at 10:37

1 Answer 1

3

if your repo contains big files, you should consider using Git LFS : https://git-lfs.github.com/

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.