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
Written by Deden Fathurahman
Related protips
2 Responses
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
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
khasinski
591.1K
dmichaelavila
500.4K
Related Tags
#git
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#