在Github上找了一个有意思的项目 flowkey/UIKit-cross-platform,运行git submodule update --init --recursive,结果报了如下错误,
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.
发现公司电脑上的ssh公钥没有上传到Github,上传后解决问题。
网友评论