Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about fatal: Could not read from remote repository. #8

Open
muzi-Lu opened this issue Mar 31, 2024 · 2 comments
Open

Question about fatal: Could not read from remote repository. #8

muzi-Lu opened this issue Mar 31, 2024 · 2 comments

Comments

@muzi-Lu
Copy link

muzi-Lu commented Mar 31, 2024

Hi,
I have a qustion about git --recurse-submodules.

Cloning into 'nr3d_lib'...
remote: Enumerating objects: 791, done.
remote: Counting objects: 100% (791/791), done.
remote: Compressing objects: 100% (574/574), done.
remote: Total 791 (delta 291), reused 681 (delta 182), pack-reused 0
Receiving objects: 100% (791/791), 3.28 MiB | 5.49 MiB/s, done.
Resolving deltas: 100% (291/291), done.
Submodule 'externals/cub' ([email protected]:NVIDIA/cub.git) registered for path 'externals/cub'
Submodule 'externals/glm' ([email protected]:g-truc/glm.git) registered for path 'externals/glm'
Cloning into '/home/b302003/Ben/code/config/nr3d_lib/externals/cub'...
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: clone of '[email protected]:NVIDIA/cub.git' into submodule path '/home/b302003/Ben/code/config/nr3d_lib/externals/cub' failed
Failed to clone 'externals/cub'. Retry scheduled
Cloning into '/home/b302003/Ben/code/config/nr3d_lib/externals/glm'...
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: clone of '[email protected]:g-truc/glm.git' into submodule path '/home/b302003/Ben/code/config/nr3d_lib/externals/glm' failed
Failed to clone 'externals/glm'. Retry scheduled
Cloning into '/home/b302003/Ben/code/config/nr3d_lib/externals/cub'...
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: clone of '[email protected]:NVIDIA/cub.git' into submodule path '/home/b302003/Ben/code/config/nr3d_lib/externals/cub' failed
Failed to clone 'externals/cub' a second time, aborting

Could you help me with this qustion! Thanks in advance!

@Ysc-shark
Copy link

Ysc-shark commented May 11, 2024

I also encountered the same issue as you, and maybe you can try my solution:

Open the .gitmodules file and change all submodule URLs from the format [email protected]:User/Repo.git to https://github.com/User/Repo.git.

Alternatively, try manually cloning them to the correct location, for example:

git clone https://github.com/g-truc/glm.git /path/to/neuralsim/nr3d_lib/externals/glm.

@muzi-Lu
Copy link
Author

muzi-Lu commented May 24, 2024

Sorry for late reply, Thanks for your tips!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants