Update typing and other modernization in git client.
Review Request #14324 — Created Feb. 3, 2025 and submitted — Latest diff uploaded
This change does some improvements to our type hints, fixes up some doc
typos/errors, and moves to more modern syntax for a few things
(f-strings, list construction, etc).
Ran unit tests.