已有库设置子模块
1. 确保该目录没有任何文件被跟踪
# 确保删除该目录中的内容
rm -rf third_lib/ReactiveSwiftgit rm --cached third_lib/ReactiveSwift2. 添加子模块
git submodule add git@github.com:ReactiveCocoa/ReactiveSwift.git third_lib/ReactiveSwift3. 提交更改
git commit -m "添加 ReactiveSwift 子模块"4. 更新子模块
git submodule update --init --recursiveLast updated