0%

GIT

设置

1
2
3
4
5
# 只对github生效
git config --global http.https://github.com.proxy socks5://127.0.0.1:1080
# 对所有生效
git config --global http.proxy http://127.0.0.1:8118
git config --global https.proxy http://127.0.0.1:8118
阅读全文 »

生成公钥私钥对

1
ssh-keygen

通过私钥生成公钥

1
ssh-keygen -y -f id_rsa > id_rsa.pub

关闭SIP(System Integrity Protection)

  1. 关机
  2. 按住 command+R 开机
  3. 实用工具 -> 终端
  4. 输入 csrutil disable,回车
  5. 重启系统
1
2
-bash-3.2# csrutil disable
Successfully disabled System Integrity Protection. Please restart the machine for the changes to take effect.
阅读全文 »