Move git state to Project (#23208)

This restores its visibility outside of git_ui, which we'll need soon,
while preserving its per-project character.

Release Notes:

- N/A
b7726238adCole Miller committed on 1/16/2025, 6:57:28 PM· committed by GitHubparent614eaec
10 files changedLine totals unavailable