I need to clone a private git repo (not from GitHub) on multiple computers.
Adding private keys of the individual computers for git repo could be a solution but I'm worried it would compromise security. I don't want the computers to be able to write on the repo, but just to be able to clone it. I think creating SSH keys for every computer is also bothersome.
Is there any recommendable solution to it?
If you only want those multiple machines/users to clone repository once, you may do the following.
--bare
repository; Now if the original secured repo ever updates, you can pull to your local origin and then pull from it to multiple machines.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.