Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does git update-server-info do?

Tags:

git

ssh

What does git update-server-info do? How do I know if I need it? The manual says:

A dumb server that does not do on-the-fly pack generations must have some auxiliary information files in $GIT_DIR/info and $GIT_OBJECT_DIRECTORY/info directories to help clients discover what references and packs the server has. This command generates such auxiliary files.

How do I know if my server is dumb, and whether it does or does not do "on-the-fly pack generations", and whether it "must have some auxiliary information files"?

I am pushing a web app via ssh to a bare repository, then pulling from that bare repository into the web root.

like image 513
Ben Avatar asked Jan 18 '10 10:01

Ben


People also ask

Is git update a command?

git update-git-for-windows. If you type git update , Git kindly reminds you that the command has been updated to git update-git-for-windows : Warning!


1 Answers

Dumb server basically means accessed over HTTP. So if you access your Git repository over http: or https: URLs, you need the update-server-info business, otherwise (git:, ssh:, etc.) you don't need it.

like image 105
Peter Eisentraut Avatar answered Sep 21 '22 17:09

Peter Eisentraut