I want to put a password to my repository so that the password is asked, when cloning from my repository.
Asked
Active
Viewed 4,107 times
2 Answers
4
To restrict access to repository cloning, you need to use the ssh://... protocol, and provide ssh access to only those users you want to have access.
What you probably should do is look up the various "git workflow" questions and answers - they describe the means by which various team members pull/push from/to each other. There are many ways to do this.

Paul Beckingham
- 14,495
- 5
- 33
- 67
-
How can I provide ssh access to those users which I want to have access? – Léo Léopold Hertz 준영 Feb 16 '09 at 03:52
-
You create an account for them on the machine that hosts the repo, so they can clone by running something like: git clone user@machine:/path/to/repo.git – Paul Beckingham Feb 16 '09 at 05:02
3
I recomend gitosis to manage private repositories.
Here you have a nice Tutorial

Luis Melgratti
- 11,881
- 3
- 30
- 32