0

I host my own git repositories on my server and I can clone them with

git clone [email protected]:repo

I would like to know how to make cloning and pulling passwordless, so friends of mine could run those commands without asking for my credentials (for instance, for a zsh configuration).

Is there a way to do this so it acts similar to git hub? Where I can just clone and pull whatever repos and I want just not push to them?

1 Answer 1

1

You need to set up SSH key-based authentication on your server, so your friend can access your server without being prompted for a password.

2
  • But wouldn't that allow him to push changes as well? Commented Dec 18, 2013 at 15:19
  • Sorry, missed that part... in this case, you'll want to use something like Gitosis for fine-grained access management.
    – EmmEff
    Commented Dec 18, 2013 at 15:21

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .