1

I have git master repository, I can visit it and create sub repo in my local computer. I'm using TortoiseGit in client machine but I would like to permit my client only to download one project from my git repository. So for example:

server projects:
 +test1
 +test2
 +test3

i would like to add permission for userX to download and work above test1 only.

Now, i'm accesing my server through the ssh so the ssh user should have permission to r/w only in test1 folder?

Puchacz
  • 1,987
  • 2
  • 24
  • 38

1 Answers1

0

You could add to your server an authorization layer like gitolite.
It interfaces well with ssh. See "how gitolite uses ssh", and my own answer "How Gitolite works?".

That way, you can configure precisely who can access what in a gitolite.conf file of a special repo gitolite-admin:

repo test1
    RW     =   user1
Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250