/ git

git-submodule

项目通过 submodule 集成 ckeditor

If you are using git for your project and you want to integrate CKEditor, we recommend to add this repository as a submodule.

git submodule add -b <release branch> git://github.com/ckeditor/ckeditor-releases.git <clone dir>
git commit -m "Added CKEditor submodule in <clone dir> directory."

集成第三方模板

git submodule add -b v3.7.3 https://github.com/PanJiaChen/vue-element-admin.git admin

应用示例

git submodule add https://github.com/chaconinc/DbConnector
cd DbConnector

git submodule init
git submodule update

如果克隆有子模块的仓库:

git clone --recursive https://github.com/chaconinc/MainProject

例如克隆 Redis Desktop Manager 时:

git clone --recursive https://github.com/uglide/RedisDesktopManager.git -b 0.9 rdm && cd ./rdm
Cloning into 'rdm'...
remote: Counting objects: 16125, done.
remote: Compressing objects: 100% (26/26), done.
remote: Total 16125 (delta 14), reused 31 (delta 14), pack-reused 16084
Receiving objects: 100% (16125/16125), 71.65 MiB | 424.00 KiB/s, done.
Resolving deltas: 100% (9623/9623), done.
Submodule '3rdparty/asyncfuture' (https://github.com/benlau/asyncfuture.git) registered for path '3rdparty/asyncfuture'
Submodule '3rdparty/crashreporter' (https://github.com/RedisDesktop/CrashReporter.git) registered for path '3rdparty/crashreporter'
Submodule '3rdparty/easyloggingpp' (https://github.com/easylogging/easyloggingpp.git) registered for path '3rdparty/easyloggingpp'
Submodule '3rdparty/gbreakpad' (https://github.com/google/breakpad.git) registered for path '3rdparty/gbreakpad'
Submodule '3rdparty/qredisclient' (https://github.com/uglide/qredisclient.git) registered for path '3rdparty/qredisclient'
Submodule '3rdparty/qt-unix-signals' (https://github.com/sijk/qt-unix-signals.git) registered for path '3rdparty/qt-unix-signals'

这个仓库包含了多个子模块(submmodule)