The first form is correct.  When referred to as a package, the name is capitalized as Git.  The command line tool is `git`.