We have some code in a public_html dir at a VPS. I want to make it git repo and give private access to it to just 1 person. The idea is to have version control for easy comparison of what this person changed and nobody else to be able to read/write to the code.
I spend the day looking into gitosis, gitolite and so on, but they are overkill and also want separate dir under another user and then I should do some complicated linking to the existing one between bare and not-bare repo, so kinda got lost there.
I guess you may setup a git-shell -only account with access to the single public_html
repository. If you make this repository read-only for that (via simple file/group permissions of the .git/* files), the user will effectively get a read-only access to it.
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.