How to setup User and Password for Git server?

How to setup a Git server which use User/Password?

  • I need to build a Git server which allows clients from both Window and *nix to read and write. There are many tutorials out there showing how to build gitolite server over ssh, which required clients to send its public keys. But it's annoying to generate keys and reconfig gitolite everytime i want to pull/push my source to/from someone's computer. Are there anyway to build a git server simply using user/password? Thanks Jack

  • Answer:

    Standard git doesn't require you to use a key pair. If you don't have a public key available, it will just prompt your password when doing an interaction with the server. The requirement is however that everyone contributing has a *nix account on the server. Setting up an anonymous, read only access to the repo is easy with http://man.he.net/man1/git-daemon. That said, I think you misunderstood the key stuff. You only need to configure stuff and generate keys once for every new user, not every time you access the repo.

jAckOdE at Stack Overflow Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.