终端下输入命令配置镜像加速
git config --global url."https://github.com.cnpmjs.org/".insteadOf https://github.com/
如果想推送代码还是编辑hosts文件,此方法不适合GitHub推送代码。
git config --global url."https://github.com.cnpmjs.org/".insteadOf https://github.com/
如果想推送代码还是编辑hosts文件,此方法不适合GitHub推送代码。