clone サブモジュール
- コードの使用をダウンロードするとき
git clone https://github.com/android-hacker/VirtualXposed.git --recursive
- 最初に親プロジェクトを複製してから、サブモジュールを初期化します。
git clone https://github.com/android-hacker/VirtualXposed.git
cd VirtualXposed\VirtualApp\launcher
git submodule init
git submodule update
ただし、VirtualXposed の場合、両方のメソッドがエラーを報告します。エラーは次のとおりです。
Please make sure you have the correct access rights
and the repository exists.
fatal: clone of '[email protected]:android-hacker/Launcher3.git' into submodule path 'E:/reverseEngineer/VX/VirtualXposed/VirtualApp/launcher' failed
Failed to clone 'VirtualApp/launcher'. Retry scheduled
Cloning into 'E:/reverseEngineer/VX/VirtualXposed/VirtualApp/launcher'...
ssh: connect to host github.com port 22: Connection timed out
fatal: Could not read from remote repository.
The reason for the error here is because it is used [email protected]:android-hacker/Launcher3.git
, and non-owners of this project has no permission. We need to use it https://github.com/android-hacker/Launcher3.git
instead. ファイルを見つけて修正し.git/config
、.gitmodules
コードを正常に複製します。
参考: https:
//segmentfault.com/a/1190000003076028
fastio/pedis#6