[Git] Cleanup on files.

Made some functions static.
Removed redundant usings.
Added some StringComparison.Ordinal usage.
Merge pull request #383 from mono/gitCleanup

[Git] Cleanup on files.