clone Submodule
- When downloading code use
git clone https://github.com/android-hacker/VirtualXposed.git --recursive
- First clone the parent project, and then initialize the Submodule.
git clone https://github.com/android-hacker/VirtualXposed.git
cd VirtualXposed\VirtualApp\launcher
git submodule init
git submodule update
But for VirtualXposed, both methods will report an error, the error is
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 have no permission. We need to use it https://github.com/android-hacker/Launcher3.git
instead. Find the file .git/config
and .gitmodules
modify it to clone the code normally.
Reference:
https://segmentfault.com/a/1190000003076028
fastio/pedis#6