numbbbbb / githuber.info

打造最好用的GitHub人才挖掘工具
340 stars 57 forks source link

为何git库这么大?? #18

Open xiajian opened 9 years ago

xiajian commented 9 years ago

工作区的文件大小才76 items, totalling 4.5 MB, git库居然38 items, totalling 43.4 MB。这不科学,clone下来时,超慢的。

numbbbbb commented 9 years ago

印象中应该是某一次包含了一系列npm库,后来revert回去了,不过好像还是在库中。。。郁闷。。。

xiajian commented 9 years ago

我找了个工具https://github.com/cmaitchison/git_diet,对版本库稍作了一下清理,将库的体积降到了46 items, totalling 11.1 MB。要不要发Pull Request给你,还有,我最近在学angularjs,可以让我加入这个项目吗?


上面的工具,我试了半天,确实可以缩减版本库的大小。确实少了30mb,但是,只能在本地缩减大小。无法推送到远程已存在的库中。看来只能用来初始化提交时减少版本库。

以下是执行流程:

remove_file=(images/guzhang.d18d4737.gif node_modules/*.* bower_components/*.* bower_components/echarts/doc/**/*.* bower_components/echarts/doc/**/*.* bower_components/echarts/*.*  bower_components/echarts/doc/asset/img/*.* .tmp/**/*.* .tmp/*.* bower_components/echarts/doc/slide/img/*.* node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant/node_modules/pngquant-bin/vendor/pngquant bower_components/echarts/doc/asset/img/example/*.* bower_components/echarts/build/source/*.*)

for i in ${remove_file[*]}; do 
  ./purge_objects.sh $i; 
done
xiajian commented 9 years ago

请关闭我发的Pull Request,第一次发,项目没有同步,还还有些错误。

numbbbbb commented 9 years ago

@xiajian 欢迎加入~开源项目就是要一起做嘛。我先关掉PR,历史记录确实挺难搞。。。

xiajian commented 9 years ago

留个联系方式,如果要协作的话,你们用什么交流工具。用qq吗?

numbbbbb commented 9 years ago

主要是QQ,也用Trello和BearyChat,你加我吧:925184928。