cocos2dx-git

lsof -PiTCP -sTCP:LISTEN
cocos android上前后台切换黑屏问题正确解决方案https://blog.csdn.net/neufeng2010/article/details/107836951
#进入桌面 cd Desktop 
#创建目录 mkdir cocos2d-x 
#进入目录 cd cocos2d-x 
#设置git 走代理 
git config --global http.https://github.com.proxy socks5://127.0.0.1:1080 
git config --global http.https://github.com.proxy http://127.0.0.1:8118 
git config --global http.proxy http://127.0.0.1:8118 
git config --global https.proxy http://127.0.0.1:8118 
取消代理配置: 
git config --global --unset http.https://github.com.proxy 
git config --global --unset http.proxy 
git config --global --unset https.proxy 
#初始化 git git init 
#本地添加远程 
git remote add origin https://github.com/cocos2d/cocos2d-x.git 
#获取远程分支 git fetch origin v3 
#把远程分支代码拉到本地 git pull origin v3 
#取子模块 git submodule update --init git checkout --force v3
export socks5_proxy=socks5://127.0.0.1:1080
export http_proxy=socks5://127.0.0.1:1080
export https_proxy=socks5://127.0.0.1:1080
unset socks5_proxy http_proxy https_proxy
export http_proxy="http://127.0.0.1:8118" 
export https_proxy="http://127.0.0.1:8118"