#git subtree 的用法
假如有一个iOS的项目,我用到了很多外部的库,如AFNetworking,我怎么把它集成进来呢?
##通过submodule的方法
把这个项目追加到自己是项目中:
git submodule add [email protected]:AFNetworking/AFNetworking.git Vendor/AFNetworking
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
#git subtree 的用法
假如有一个iOS的项目,我用到了很多外部的库,如AFNetworking,我怎么把它集成进来呢?
##通过submodule的方法
把这个项目追加到自己是项目中:
git submodule add [email protected]:AFNetworking/AFNetworking.git Vendor/AFNetworking
| template<typename T> | |
| class Singleton | |
| { | |
| public: | |
| static T &instance() | |
| { | |
| if (!instance) | |
| instance_ = new T; | |
| return *instance_; | |
| } |