Last Updated: February 25, 2016
·
343
· dedenf

git project folder takes time to load

if your git project folder took sometime just to do an ls command, it maybe have many garbage/duplicate file that will slowdown load time.

use git gc command in the git project folder

2 Responses
Add your response

auto gc is automatically run. However, git gc only really takes action when there are too many loose objects (over 7000). For more info, you can refer to the git manual.

http://git-scm.com/book/en/Git-Internals-Maintenance-and-Data-Recovery

over 1 year ago ·

@twolfson, i wrote this because my project seems takes longer than usual to load, and when the time i executed git gc it feels much faster, and i thought that maybe the gc command is working, i guess that's not the actual solution. Thanks for pointing out!

over 1 year ago ·