在Github上找了一個有意思的項(xiàng)目 flowkey/UIKit-cross-platform褐耳,運(yùn)行g(shù)it submodule update --init --recursive,結(jié)果報了如下錯誤,
git submodule update --init --recursive
Cloning into '/Users/keke/Documents/GitHub/UIKit-cross-platform/SDL'...
Cloning into '/Users/keke/Documents/GitHub/UIKit-cross-platform/swift-android-toolchain'...
Cloning into '/Users/keke/Documents/GitHub/UIKit-cross-platform/swift-jni'...
Submodule path 'SDL': checked out '9cdeedb713f959ed6192cf5209b609d5cfa88be1'
Submodule 'external/SDL_ttf' (git@github.com:flowkey/SDL_ttf-mirror.git) registered for path 'SDL/external/SDL_ttf'
Submodule 'sdl-gpu' (git@github.com:flowkey/sdl-gpu.git) registered for path 'SDL/external/sdl-gpu'
Cloning into '/Users/keke/Documents/GitHub/UIKit-cross-platform/SDL/external/SDL_ttf'...
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
發(fā)現(xiàn)公司電腦上的ssh公鑰沒有上傳到Github约计,上傳后解決問題裳涛。