文档
命令
删除远程分支
git push origin --delete serverfix
Submodule
- 同步工程到本地:git clone git@github.com:Android/Great/MainProject.git
- 切到指定分支:git checkout [branche]
- 分支拉到最新:git pull —rebase
- 初始化组件:git submodule init
- 子模块配置同步:git submodule sync
- 子模块同步到本地:git submodule update
OR -> git clone —recurse-submodules git@github.com:Android/Great/MainProject.git [存放目录]
Github
Github 搜索
in:description 笔记 stars:>2000
https://github.com/search?q=in%3Adescription+笔记+stars%3A>2000&type=Repositories
Github Clone 加速
# socks5协议,1080端口修改成自己的本地代理端口
git config --global http.proxy socks5://127.0.0.1:1080
git config --global https.proxy socks5://127.0.0.1:1080
# http协议,1081端口修改成自己的本地代理端口
git config --global http.proxy http://127.0.0.1:1081
git config --global https.proxy https://127.0.0.1:1081
# 下面是仅仅针对github进行配置,让github走本地代理,其他的保持不变;
# socks5协议,1080端口修改成自己的本地代理端口
git config --global http.https://github.com.proxy socks5://127.0.0.1:1080
git config --global https.https://github.com.proxy socks5://127.0.0.1:1080
# http协议,1081端口修改成自己的本地代理端口
git config --global http.https://github.com.proxy https://127.0.0.1:1081
git config --global https.https://github.com.proxy https://127.0.0.1:1081
# 查看所有配置
git config -l
# reset 代理设置
git config --global --unset http.proxy
git config --global --unset https.proxy