Search code examples
gitabsolute-pathworking-directory

Set git server home directory


We're tuning up a private git server using an online manual and now the git remote add command looks like:

git remote add local [email protected]:/var/lib/git/our-project.git

instead of

git remote add local [email protected]:our-project.git

How to set up a working directory for git server?


Solution

  • It turns out that I didn't install a git server for real. The server machine is used by local Git as a dumb file storage with SSH. All the clever stuff is inside of a local Git client! To use everything normally I should install some git daemon.

    Git client is a clever flexible thing - it can work with Git server and if not - yeah, it just sends files through SSH.