简体   繁体   中英

How to share a git repository to specific users on same machine?

Let's say I need to only give access to a repository ( /home/myuser/myrepo ) to users A and B only. I am not an administrator, so I cannot create groups.

How do I make it so that they can clone/view the repository?

You might consider using an ssh access layer like gitolite which:

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM