首页 > 其他 > 详细

问题记录001

时间:2019-10-17 16:25:25      阅读:72      评论:0      收藏:0      [点我收藏+]

1. git图标问题。

每次都会被360的图片给挡住在注册表里的位置。开始+R, 输入regedit   ,找到HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers\, 删掉360的注册表配置。

 

2. npm 淘宝镜像配置,这个网上很多,我这里也记录下。

 临时使用

npm --registry https://registry.npm.taobao.org install express

持久使用

npm config set registry https://registry.npm.taobao.org
配置后可通过下面方式来验证是否成功

npm config get registry

通过cnpm使用

npm install -g cnpm --registry=https://registry.npm.taobao.org

cnpm install express

 

3. git设置代理的方法。

# 设置ss
git config --global http.proxy ‘socks5://127.0.0.1:1080‘
git config --global https.proxy ‘socks5://127.0.0.1:1080‘
# 设置代理
git config --global https.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080
git config –global http.proxy “localhost:1080”
# 取消代理
git config --global --unset http.proxy
git config --global --unset https.proxy

 

4.设置hosts加快访问github.com的速度:
192.30.255.113 github.com
140.82.118.4 github.com
192.30.253.118 gist.github.com
192.30.255.119 gist.github.com

问题记录001

原文:https://www.cnblogs.com/gongzhuiau/p/11692816.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!