Cmder是一个比较好用的命令行工具,可以通过修改默认Git地址提高启动速度:
-
打开vendor/init.bat添加本机Git地址,并且打开启动时间显示
:: Use /v command line arg or set to > 0 for verbose output to aid in debugging. set GIT_INSTALL_ROOT=C:\Program Files\Git if not defined verbose_output set verbose_output=0 :: Use /d command line arg or set to 1 for debug output to aid in debugging. if not defined debug_output set debug_output=0 :: Use /t command line arg or set to 1 to display init time. if not defined time_init set time_init=1
-
修改前:
Elapsed Time: 0:0:2.01 (2.01s total) C:\Users\test\Desktop $
修改后:
Elapsed Time: 0:0:1.48 (1.48s total) C:\Users\test\Desktop $