[Git] Cleanup on files.

Made some functions static.
Removed redundant usings.
Added some StringComparison.Ordinal usage.