If I run the following command on Debian Lenny:
apt-get install git
... I'm unable to use git:
# git --version bash: git: command not found
The package you most likely want is git-core.
(Works just fine without adding an extra repository.)
Update: This has now been fixed; in squeeze and beyond the git package is now called git.
To get ~1.7.1 use this method. If you want ~188.8.131.52 then use andol's answer.
This is because
However, you can get around this by using the lenny-backports git package:
UPDATE: As of September 5th 2010, this method has changed slightly as backports.org is being phased out the instructions now follow the recommended solution to install from the latest Debian backports.