Got “our configuration does not allow connections to ” while using composer install

Got this message while using the composer install command[Composer\Downloader\TransportExceptionYour configuration does not allow connections to http://xxx.com:80/path/to/repo/repo-name-0.0.0.tar.gz. See https://getcomposer.org/doc/06-config.md#secure-http for details.Just run this commandcomposer config -g secure-http falsThen, go aheadReferrenc[1]. Latest Composer version not pulling Larav... Read More

Git之替换代码库HTTP(s)地址路径成Git协议路径

当使用glide install安装go的依赖包时,会提示[INFO] --> Fetching github.com/xxx/yyUsername for 'https://github.com'此时,可以使用git config --add参数进行地址替换,具体命令如下git config --global --add url."git@github.com:".insteadOf "https://github.com/"之后,再使用glide install安装依赖包时,会使用如下形式的命令进行下载代码git clone git@github.com:xxx/yyy.gi文章来源:胡小旭 => Git之替换代码库HTTP(s)地址路径成Git协议路径 Read More