Ram
Ram

Reputation: 11

restrict git command on git client

I would like to check if there is way to restrict git clone of a repo for users and sametime repo files should be viewed from STASH itself so that the user don't get the repo files physically downloaded into local machine.

Upvotes: 1

Views: 87

Answers (1)

VonC
VonC

Reputation: 1325137

It depends whether or not you have access/control to the remote server.

As Junio C Hamano mentioned in this thread

If they come over the http transport, you would solve it the same way as you solve "how do I allow access to these files on my webserver to only selected few?" Probably .htaccess file in the toplevel directory will be involved.

Upvotes: 1

Related Questions